Question

Parents of the pupils of the Park Primary School must pay an amount for outfits for the annual play. All pupils take part in

0 0
Add a comment Improve this question Transcribed image text
Answer #1

//C++ Code

#include<iostream>
using namespace std;
int main()
{
int ch;
cout<<"Enter the grade number: ";
cin>>ch;
switch(ch)
{
case 0: cout<<"Not allowed to take part in the play"<<endl;
break;
case 1: cout<<"The Cost of Outfit for Grade 1 pupils is "<<45<<endl;
break;
case 2: cout<<"The Cost of Outfit for Grade 2 pupils is "<<45<<endl;
break;
case 3: cout<<"The Cost of Outfit for Grade 3 pupils is "<<65<<endl;
break;
case 4: cout<<"The Cost of Outfit for Grade 4 pupils is "<<65<<endl;
break;
case 5: cout<<"The Cost of Outfit for Grade 5 pupils is "<<65<<endl;
break;
case 6: int k;
cout<<"Total number of roles: ";
cin>>k;
if(k==1)
{
int ld;
cout<<"Type 1 for lead role or 0 for normal role: ";
cin>>ld;
if(ld==1)
cout<<"The Cost of Outfit for Grade 6 pupils is "<<100<<endl;
else
cout<<"The Cost of Outfit for Grade 6 pupils is "<<70<<endl;
}
else if(k==2)
cout<<"The Cost of Outfit for Grade 6 pupils is "<<130<<endl;
break;
  
case 7: cout<<"Total number of roles: ";
cin>>k;
if(k==1)
{
int ld;
cout<<"Type 1 for lead role or 0 for normal role: ";
cin>>ld;
if(ld==1)
cout<<"The Cost of Outfit for Grade 7 pupils is "<<100<<endl;
else
cout<<"The Cost of Outfit for Grade 7 pupils is "<<70<<endl;
}
else if(k==2)
cout<<"The Cost of Outfit for Grade 7 pupils is "<<130<<endl;
break;
default: cout<<"Grade number wrong input"<<endl;
}
return 0;
}

1 البيا { main.cpp #include<iostream> 2 using namespace std; int main() 4- { 5 int ch; 6 cout<<Enter the grade number: ; 738 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 } case 7: cout<<Total number of roles: ; cin>>k; if(k==1) { int

Output 2:

input Enter the grade number: 0 Not allowed to take part in the play ... Program finished with exit code 0 Press ENTER to exi

Output 3:

input Enter the grade number: 4 The Cost of Outfit for Grade 4 pupils is 65 ...Program finished with exit code 0 Press ENTER

Add a comment
Know the answer?
Add Answer to:
Parents of the pupils of the Park Primary School must pay an amount for outfits for...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Parents of the pupils of the Park Primary School must pay an amount for outfits for...

    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...

  • Parents of the pupils of the Park Primary School must pay an amount for outfits for...

    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 O 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...

  • Parents of the pupils of the Park Primary School must pay an amount for outfits for...

    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...

  • Parents of the pupils of the Park Primary School must pay an amount for outfits for...

    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...

  • QUESTION 1 12 marks Parents of the pupils of the Park Primary School must pay an...

    QUESTION 1 12 marks 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 O 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...

  • QUESTION 2 [12] Parents of the pupils of the Park Primary School must pay an amount...

    QUESTION 2 [12] 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...

  • SECTION B 80 MARKS QUESTION 1 12 marks Parents of the pupils of the Park Primary...

    SECTION B 80 MARKS QUESTION 1 12 marks 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...

  • SECTION B 80 MARKS QUESTION 1 12 marks Parents of the pupils of the Park Primary...

    SECTION B 80 MARKS QUESTION 1 12 marks 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 O 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...

  • SECTION B 80 MARKS QUESTION 1 12 marks Parents of the pupils of the Park Primary...

    SECTION B 80 MARKS QUESTION 1 12 marks 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...

  • please answer #2 The Stratton Township Park The Stratton Township Park is located on a piece...

    please answer #2 The Stratton Township Park The Stratton Township Park is located on a piece of property that contains two golf courses, a swimming pool, and 800 acres of woods and open spaces. Three years ago, the Stratton Parks Department (Stratton) carved out miles of trails to allow visitors to hike the property and enjoy nature. To make that experience more enjoyable for visitors and available to school groups, Stratton decided to offer guided tours that have proven popular....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT