subject
Computers and Technology, 29.10.2020 22:40 jesser9

Java Eclipse Homework Puppet Theater Package: Chall11B
Class: PuppetApp

PUPPET ASSIGNMENT

Write a program for the “Miles of Smiles” puppet theater that will display the attendance for each night of the week, the average attendance, the total attendance, and the profit.

Your program must:

1. Declare the variable: ‘day’ and as an integer type.
2. Declare the variables ‘total’ and ‘average’ as a double.
3. Display a smiling face at the top of the screen.
4. Display the title of your program and display “PROGRAMMED BY (your name).”
5. Ask the user for the number of persons who attended the puppet show on day 1.
Repeat this for day 2, day 3, day 4 and day 5.
6 .Calculate the total attendance for the week and store it in the variable ‘total’.
7. Calculate the average daily attendance for the week and store it in the variable ‘average’. (Be sure to make the calculation with two decimal places, not as an integer.)
8. Display the total attendance for the week and the average per day.
9. If the average is greater than 25, then display “MAKING A PROFIT”, else if the average is less than 24 then display “LOSING MONEY’. Otherwise display ”BREAKING EVEN”.

Save your completed code according to your teacher’s directions.

THE MILES OF SMILES PUPPET THEATER

ATTENDANCE PROGRAM

Programmed by Sally Smith

PLEASE ENTER THE NUMBER OF PERSONS ATTENDING THE SHOW ON:

DAY 1:

DAY 2:

DAY 3:

DAY 4:

DAY 5:

**

*_ _*

* 0 0 *

* + *

* \___/ *

* *



TOTAL: (The total will be displayed here)

AVERAGE: (The average will be displayed here)

We are making money! (If this is the case…otherwise “Losing Money” or “Breaking Even”)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 17:30
Scientists have changed the model of the atom as they have gathered new evidence. one of the atomic models is shown below. what experimental evidence led to the development of this atomic model from the one before it? a few of the positive particles aimed at a gold foil seemed to bounce back. the colors of light emitted from heated atoms had very specific energies. experiments with water vapor showed that elements combine in specific proportions. cathode rays were bent in the same way whenever a magnet was brought near them.
Answers: 2
question
Computers and Technology, 24.06.2019 07:20
Ingrid started speaking about her slide presentation. when she clicked to th"third slide, which had just a picture of an elephant, she forgot what she wassupposed to talk about. what could ingrid do to avoid this situation in thefuture? oa. print handouts for her audience.ob. add presenter's notes to each slide.oc. add a video to each slide.od. save her slide presentation to a flash drive
Answers: 2
question
Computers and Technology, 24.06.2019 11:30
Convert 11001110(acdd notation) into decimal
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
You know the right answer?
Java Eclipse Homework Puppet Theater Package: Chall11B
Class: PuppetApp

PUPPET AS...
Questions
Questions on the website: 13722363