Please create a C++ program that will ask a high school group that is made of...

50.1K

Verified Solution

Question

Programming

Please create a C++ program that will ask a high school groupthat is made of 5 to 17 students to sell candies for a fund raiser.There are small boxes that sell for $7 and large ones that sell for$13. The cost for each box is $4 (small box) and $6 (large box).Please ask the instructor how many students ended up participatingin the sales drive (must be between 5 and 17). The instructor mustinput each student’s First name that sold items and enter thenumber of each box sold each (small or large). Calculate the totalprofit for each student and at the end of the program, print howmany students participated and the total boxes sold for each (smalland large) and finally generate how much profit the group made.

Answer & Explanation Solved by verified expert
4.0 Ratings (593 Votes)
Profit for small box 7 4 3Profit for    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students