Parents of the pupils of the Park Primary School must pay an amount for outfits for...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Parents of the pupils of the Park Primary School must pay an amount for outfits for the annual play. All pupils take part in the play, except the Grade 0 pupils. The amount that the parents have to pay is calculated as follows: ● ● ● The cost of the outfits for Grade 1 and 2 pupils is R45. The cost of the outfits for Grades 3 to 5 is R65. Grade 6 and 7 pupils may play one or two roles. If they play a lead role, they may only play one role. The cost of the outfits is R70 if they play one role. If this role is a lead role, the cost is R100. If they play two roles, the cost is R130. Use a switch statement and write down ONLY the necessary C++ statements to calculate and display the amount to be paid or display an appropriate error message if required. Do NOT write a complete program. Use the following variables: int grade; int fee; bool lead role; //true if a child plays a lead role bool roles2; //true if a child plays 2 roles Assume that values have been assigned to these variables already. Parents of the pupils of the Park Primary School must pay an amount for outfits for the annual play. All pupils take part in the play, except the Grade 0 pupils. The amount that the parents have to pay is calculated as follows: ● ● ● The cost of the outfits for Grade 1 and 2 pupils is R45. The cost of the outfits for Grades 3 to 5 is R65. Grade 6 and 7 pupils may play one or two roles. If they play a lead role, they may only play one role. The cost of the outfits is R70 if they play one role. If this role is a lead role, the cost is R100. If they play two roles, the cost is R130. Use a switch statement and write down ONLY the necessary C++ statements to calculate and display the amount to be paid or display an appropriate error message if required. Do NOT write a complete program. Use the following variables: int grade; int fee; bool lead role; //true if a child plays a lead role bool roles2; //true if a child plays 2 roles Assume that values have been assigned to these variables already.
Expert Answer:
Answer rating: 100% (QA)
C CODE include using namespace std int main int grade6 int ... View the full answer
Related Book For
Principles of Information Systems
ISBN: 978-1305971776
13th edition
Authors: Ralph Stair, George Reynolds
Posted Date:
Students also viewed these general management questions
-
There are 15 jobs that must be done by 10 employees. Each job must be done by a single employee, and each employee can do at most two jobs. The times (in minutes) for the employees to do the jobs are...
-
Consider the following six tasks that must be assigned to four workers on a conveyor-paced assembly line (i.e., a machine-paced line flow). Each worker must perform at least one task. Time to...
-
(a) Determine the amount of work (in joules) that must be done on a 100-kg payload to elevate it to a height of 1 000 km above the Earths surface. (b) Determine the amount of additional work that is...
-
Jake's office building is destroyed by a fire on September 15, 2022. Jake receives insurance proceeds on April 15, 2023 in the amount of $300,000. Jake's adjusted basis in the building was $250,000....
-
Describe four characteristics of skin that help it resist infection.
-
Bond Yields Giles Co. wants to issue new 20-year bonds for some much-needed expansion projects. The company currently has 7 percent coupon bonds on the market that sell for $1,062, make semiannual...
-
Consider the automobile gasoline mileage data in Table B.3. a. Build a linear regression model relating gasoline mileage \(y\) to engine displacement \(x_{1}\) and the type of transmission...
-
Determining and Interpreting the Effects of Transactions on Income Statement Categories and Return on Assets Avon Products, Inc., is a leading manufacturer and marketer of beauty products and related...
-
Schaeffer Shippers announced on May 1 that it will pay a dividend of $1.20 per share on June 15 to all holders of record as of May 31st. The firm's stock price closed today at $42 a share. Assume all...
-
a. Identify the physical control weaknesses depicted in the flowchart for Problem 2. INTERNAL CONTROLS AND FLOWCHART ANALYSIS b. Describe the IT controls that should be in place in thissystem. Sales...
-
5-59 The pressure in a city's main water distribution network is 270 kPa (effective) at a particular location. Determine whether water can be fed with this pressure to a service tank 25 m above the...
-
Spring Fording Corp. (SFC) has 1,700,000 shares outstanding. Its most recent reported earnings were $8,500,000. SFC is considering issuing an additional 800,000 shares. The proceeds of the issue will...
-
Mann's budget for the upcoming year revealed the following figures: Sales revenue $ 850,000 Contribution margin 505,000 Income 55,000 If the company's break-even sales total $759,000, What would be...
-
1. What are contingent liabilities in accounting, and how are they recorded? 2. How do contingent liabilities differ from actual liabilities? 3. What are some examples of contingent liabilities that...
-
Green LTD has a Note Receivable of $5,000. The note will be collected in installments. $1,000 is due one years and the remainder is due after a year. What is the classification of the note on the...
-
Discuss the two concept Marginal Costing and Absorption costing. Please be detail and also provide examples.
-
Based on the following data, determine the total assets, total liabilities, net worth, total cash inflows, and total cash outflows. Balance Sheet and Cash Flow Items Rent for the month Cash in...
-
Choose a company from the SEC EDGAR Web site for your Key Assignment to evaluate for the impact of convergence to IFRS. Review the financial reports and notes of the company you have chosen from the...
-
Your team has been asked to develop your schools first student code of ethics. How might you approach this task? Who might you try to involve? What might be some key tenants of such a code of ethics?
-
Assume you are a member of a committee responsible for replacing your organizations retiring CIO. What characteristics would you want in a new CIO? How would you go about identifying qualified...
-
Imagine that your team has been hired as consultants to a large organization that has just suffered a major public relations setback due to a large-scale data breach that it handled poorly. Identify...
-
Elm City is considering a replacement for its police radio. The benefits and costs of the replacement are shown below. What is the replacement's benefit/cost ratio if the effective annual interest...
-
True or False: OMB's Circular No. A-94, Revised is the definitive document for benefit-cost analysis.
-
A library shelving system has a first cost of \(\$ 20,000\) and a useful life of 10 years. The annual maintenance is expected to be \(\$ 2,500\). The annual benefits to the library staff are expected...
Study smarter with the SolutionInn App