Karlton Learning wants a program that displays the amount of money a company owe
ID: 3530384 • Letter: K
Question
Karlton Learning wants a program that displays the amount of money a company owes for a seminar. The fee per person is based on the number of people the company registers, as shown in Figure 6-43. For example, if the company registers seven people, then the total amount owed is $560. If the user enters a number this is less than or equal to zero, the program should display an appropriate error message. Figure 6-43 Number of Registrants / Fee per person: 1 through 4 / $100 5 through 10 / $80 11 or more / $60 a. Create an IPO chart for the problem, and then desk-check the algorithm five times, using the numbers 4, 8, 12, 0, and -2 as the number of people registered. b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown in Figure 6-42. Then code the algorithm into a program. c. Desk-check the program using the same data used to desk-check the algorithm. d. Enter your C++ instructions into a source file named Introductory13.cpp. Also enter appropriate comments and any additional instructions required by the compiler.Explanation / Answer
Hey This i have solved all your problem..Check it out....So please give me reward for my effort by rateing it with 5 stars.
1 )
Algorithim to Find the total earning form seminar :
1 . start
2 . Enter the no of persons.
3 . check if(0 <= noOfPerson <= 4 )
3.1 : totalearning = noOfPerson * 100
3.2 else if(5 <= noOfPerson <= 10)
3.2.1 totalearning = noOfPerson * 80
3.3 else if(noOfperson > 10)
3.3.1 totalearning = noofperson * 60
3.4 else
print invalide number of person..
4 end
IPO chart for the algorithim
he Input-Process-Output (IPO) Model, also known as the IPO+S Model, is a functional model and conceptual schema of a general system. An IPO chart/table identifies a program
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.