ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 06 May 2017 My Price 9.00

COM S 207LampObjectiveWrite a program that reads in lines

This is java programming, I need you guys' help, it is so difficult to me. Due date is 12/12, Sunday. Thank you.

 

COM S 207LampObjectiveWrite a program that reads in lines from the input.For every pair of line, it creates Lamp objects and operates on them as per instructions in the lines. Then, itprints out information on the status of each Lamp.The important part of this assignment is tomake use of the Lamp class. Details are given after an explanationof what the program is to do.NOTE THAT AT THE END OF THIS DOCUMENT THERE ARE INSTRUCTIONS ON HOW TO CREATE A ZIP FILE USINGECLISPE THAT YOU CAN UPLOAD TO cyoj-207.cs.iastate.edu for this problem.InputThe input will be one or more PAIRS of lines.Each pair of lines will have on the first line names of lights and on the second line will have the states of thelines. The first line will have an integer followed by that many strings consisting of names of colors.Example: 2 green grayThe second line will have for each lamp a 0 or 1 . A 0 will signify that the lamp is to be turned OFF and a 1 willindicate that the particular lamp is to turned ON.Example: 2 green gray followed by 1 1 will indicate that both the green and the gray lamps are to be turned on.OutputEach pair of input lines will be followed by ONE line of output indicating the status of the lamps described inthe input. In the above example, the output will be "green is ON gray is ON".Sample Input2 green gray1 11 orange0Sample Outputgreen is ON gray is ONorange is OFFNow that you know what this program is to do, let us getinto more details of what you need to do. See next page.

 

Attachments:

Answers

(11)
Status NEW Posted 06 May 2017 04:05 AM My Price 9.00

-----------

Not Rated(0)