subject

Assembly ARM programming Your program will simulate the operation of a Furniture Factory saw. A Furniture Factory has an automatic saw that cuts 1" x 6" x 12' planks to the length specified by the user. The saw is preloaded with three full-length boards. If the first board is long enough cut the desired length from the board. If the first board is not long enough continue checking the other boards until you find one long enough. The user enters the length in whole inches. 144" is the maximum length request and 6" is the minimum length request. Continue prompting the user until all the boards are at less than 6" long. After each board is cut the program is to print out the total number of boards cut so far, the total linear length of the boards cut (in inches) and the length remaining on each of the three boards. Prior to shutting down the program the remaining inventory is calculated and displayed as waste. When the program starts it shall display identification and the current inventory level.
For example:
Cut-It-Up Saw
Boards cut so far: 0
Liner length of boards cut so far: 0 inches
Current Board Lengths:
One: 144 inches
Two: 144 inches
Three: 144 inches
The program shall then prompt the user for the length of board to cut. For example:
Enter the length of board to cut in inches (at least 6 and no more than 144):
The program shall reject any invalid inputs (characters, less than 6, or greater than 144) and
prompt for entry again.
When a valid input is provided the program finds a board that is long enough and cuts the
requested length from the board. If there is not a board long enough the program displays there
are no boards long enough and prompts for a new (shorter) request.
After each valid board cut the current inventory levels are displayed. For example:
Boards cut so far: 4
Liner length of boards cut so far: 75 inches
Current Board Lengths:
One: 69 inches
Two: 144 inches
Three: 144 inches

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, hailee232
What is a society that has moved to the internet rather than relying on physical media called
Answers: 2
image
Computers and Technology, 22.06.2019 10:30, ilovepickles930
What can tanya do now to start preparing for the college and scholarship application process? think about her grades, activities in which she can get involved, possible part-time jobs at which she can work, and standardized tests she can take. (10 points) apex
Answers: 2
image
Computers and Technology, 22.06.2019 21:00, mazolethrin9632
Which of these is most responsible for differences between the twentieth century to the twenty-first century?
Answers: 2
image
Computers and Technology, 23.06.2019 15:00, lopez7512
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
You know the right answer?
Assembly ARM programming Your program will simulate the operation of a Furniture Factory saw. A Fur...

Questions in other subjects:

Konu
Mathematics, 23.08.2019 06:00