subject

ou are creating a program for the owner of a small museum. They charge $10 for adults, $8 for seniors, and $5 for children. Ask the owner to enter the # of tickets (of each type) sold that day and then calculate both the total per ticket type and the grand total for the day. All user input should occur in one line. Output: How many Adult, Senior, and Child tickets were sold today? (separate numbers using spaces): [assume input is 10 10 10] Revenue from Adult ticket sales is $100 Revenue from Senior ticket sales is $80 Revenue from Child ticket sales is $50 Total revenue for today is $230 Hints and Notes: 1) Use three constants and seven variables. No math should be done in output statements.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
What is the worst-case complexity of the maxrepeats function? assume that the longest string in the names array is at most 25 characters wide (i.e., string comparison can be treated as o( class namecounter { private: int* counts; int nc; string* names; int nn; public: namecounter (int ncounts, int nnames); int maxrepeats() const; }; int namecounter: : maxrepeats () { int maxcount = 0; for (int i = 0; i < nc; ++i) { int count = 1; for (int j = i+1; j < nc; ++j) { if (names[i] == names[j]) ++count; } maxcount = max(count, maxcount); } return maxcount; }
Answers: 3
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
How do i change the size of my bookmarks in my bookmarks bar in google chrome? ? plz hlp me
Answers: 2
You know the right answer?
ou are creating a program for the owner of a small museum. They charge $10 for adults, $8 for senior...
Questions
question
History, 26.02.2021 18:30
question
English, 26.02.2021 18:30
Questions on the website: 13722362