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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
What operating system is a smartphone most likely to use? 1.bsd 2.mac os x 3.symbian 4.linux
Answers: 1
question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
question
Computers and Technology, 25.06.2019 14:00
Suppose we are performing a binary search on a sorted array called numbers initialized as follows: // index 0 1 2 3 4 5 6 7 8 9 10 11 12 13 int[] numbers = {-2, 0, 1, 7, 9, 16, 19, 28, 31, 40, 52, 68, 85, 99}; // search for the value 5 int index = binarysearch(numbers, 5); write the indexes of the elements that would be examined by the binary search (the mid values in our algorithm's code) and write the value that would be returned from the search. assume that we are using the binary search algorithm shown in lecture and section.
Answers: 3
You know the right answer?
Assembly ARM programming Your program will simulate the operation of a Furniture Factory saw. A Fur...
Questions
question
Mathematics, 10.05.2021 17:30
question
English, 10.05.2021 17:30
question
Mathematics, 10.05.2021 17:30
question
History, 10.05.2021 17:30
question
Mathematics, 10.05.2021 17:30
Questions on the website: 13722361