amount of money charged for a seminar. The fee per person is based on the number of people registered for the seminar. The following table shows the payment structure. For example, if the number of people registered for seminar are seven, then the total amount would be Rs 700. If the user enters a number that is less than or equal to 0, the program should display an error. The program should continue to respond until user enters a negative value. Number of Persons Rate 7 or above 100/person 5 to 6 150/person 1 to 4 200/person 0 Error

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.7: Do While Loops
Problem 3E: (Misc. application) a. Write a program to reverse the digits of a positive integer number. For...
icon
Related questions
Question
UO wants a program that displays the amount of money charged for a seminar. The fee per person is based on the number of people registered for the seminar. The following table shows the payment structure. For example, if the number of people registered for seminar are seven, then the total amount would be Rs 700. If the user enters a number that is less than or equal to 0, the program should display an error. The program should continue to respond until user enters a negative value. Number of Persons Rate 7 or above 100/person 5 to 6 150/person 1 to 4 200/person 0 Error
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT