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, 22.06.2019 16:30
Technician a says that a dry sump system uses no oil storage sump under the engine. technician b says that a wet sump system uses no oil storage sump under the engine. who is correct?
Answers: 3
question
Computers and Technology, 24.06.2019 04:30
1. web and mobile applications allow users to be actively engaged in an online activity. a true b false 2. some examples of business applications purposes are to collaborate, share files, meet virtually in real-time, and accept payments. a true b false 3. an education application would most likely do which of the following? a allow users to watch popular movies and tv shows b connect users with social and business contacts c confirm users' travel plans d teach users a new language 4. a uniform resource locator (url) is how the internet knows where to take users when an address is typed into a browser. a true b false 5. deon is required to provide the citation information for his sources. what type of information should he collect from his sources? a author name, title, date of publication, date of access, url b connections to background information c interesting facts and statistics d notes on important information
Answers: 1
question
Computers and Technology, 24.06.2019 16:30
You may see the term faq on websites which stands for frequently asked questions this is an example of which type of mnemonic? a) poem b) acronym c) acrostic d) abbreviation ken has dipped many dark chocolate marshmallows (which you remember the metric system distance units in decreasing order: kilometers, hectometer, decameter, centimeter, millimeter) is an example of which type of mnemonic? a) poem b) acronym c) acrostic d) abbreviation !
Answers: 1
question
Computers and Technology, 25.06.2019 06:20
In your pest busters game, how does player 2 move the ship 2 object? a pressing the w and s keys b. pressing the up arrow and down arrow keys c. moving the mouse from side to side d. moving the mouse up and down select the best answer from the choices provided
Answers: 1
You know the right answer?
Assembly ARM programming Your program will simulate the operation of a Furniture Factory saw. A Fur...
Questions
question
Mathematics, 22.01.2021 02:40
question
Chemistry, 22.01.2021 02:40
question
Biology, 22.01.2021 02:40
question
German, 22.01.2021 02:40
question
Mathematics, 22.01.2021 02:40
Questions on the website: 13722363