Skip to main content

Posts

Showing posts from March, 2018

[C++] Write a Program that calculates How Much a Student Organization Earns During its Fund Raising Candy Sale.

Write a Program that calculates How Much a Student Organization Earns During its Fund Raising Candy Sale. The program should prompt the user to enter then umber of candy bars sold and the amount the organization earns for each bar sold. It should then calculate and display the total amount earned. How did I approach this problem? First, I defined the objective of the program, which is to calculate the money raised from selling candy bars. Then, I came up with the names and types of variable for the program. Lastly, I started writing the code. Here is my code with explanatory comments: