1. Engineering
  2. Computer Science
  3. c language...

Question: c language...

Question details

Write a program that computes 83 percent of box office sales of $350000 and output the result to the screen. Wheels of Fury opened to box office sales of $350,000 and the studio gets 83 percent of the box office back to them. Write a program that computes how much that will actually be. Create a variable that represents the box office amount and then assign 350000 to that variable- use a meaningful variable name and display the result to the screen with a label. Create another variable that has the percent that the studio gets as part of the box office- use a meaningful variable name and display the result to the screen with a label. Finally compute the box office percentage and put that amount into another variable that totals the results (again use a meaningful variable name) and display that result to the screen with a label. If you want you output to look like dollars and cents, add #include < oman » at the top before using name pace sid, then also add cout<setprecision(2) <showpoint <fixed before your first cout statement.

C++ language

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution