Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that computes the amount of money the cheerleaders raised during their candy bar fundraiser using the following data: 12 bars per case.

Write a program that computes the amount of money the cheerleaders raised during their candy bar fundraiser using the following data: 12 bars per case. The candy was sold for $1.00 per bar. Each case cost $8.00. They are required to give the student government association 10% of their earnings. The program should ask the user how many bars were sold. The program should calculate and display the SGA proceed's, the Cheer team's proceeds, and the appropriate message depending upon if the goal was met. The team has a goal of raising $500. If the net proceeds (amount after SGA donation) exceeds $500, display the message...Congratulations! You have raised $500 or more! If the team did not raise $500, display the message....Sorry! You did not meet your goal! The program should NOT accept a negative number of bars. If a negative number is entered, the program should NOT move forward to calculate totals until valid data is entered. TIPS: All information given will be used! The cost of the candy IS NOT apart of the Cheerleading team's proceeds! Therefore, you must deduct what you paid for the candy (Cost of Goods Sold) before calculating what you give to SGA and what will be left as the cheer team's proceeds! Be sure to display the SGA and Cheer team's proceeds as well as the message!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

Describe new developments in the design of pay structures. page 475

Answered: 1 week ago