subject

Write a program that predicts how many whole bags of apples can be produced given the number of apples available (assume that each bag has dozen apples). Prompt the user to enter the number of apples available; in the output display the total number of apples, number of whole bags produced and number of apples that will be leftover. (Hint use integer division and % ) For example, if 50 is the number of apples available, then 4 whole bags will be produced and 2 apples will be leftover.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
Why would a programmer use the logical operator and in an if statement? a: when an action is to be taken that requires both conditions to be falseb: when an action is to be taken that requires both conditions to be truec: when an action is to be taken that requires the first condition to be falsed: when an action is to be taken that requires the second condition to be truei took the test and the answer is b.
Answers: 3
question
Computers and Technology, 23.06.2019 16:00
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
Aobject is used for displaying the results of a question based on stored data. a. query b. report c. table d. form
Answers: 2
You know the right answer?
Write a program that predicts how many whole bags of apples can be produced given the number of appl...
Questions
question
Mathematics, 12.02.2021 07:50
question
Mathematics, 12.02.2021 07:50
question
Mathematics, 12.02.2021 07:50
question
English, 12.02.2021 07:50
question
Mathematics, 12.02.2021 07:50