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, 21.06.2019 22:00
Determine which of the four levels of measurement (nominal, ordinal, interval, ratio) is most appropriate for the data below. internet speed levels of "fast comma " "medium comma " and "slow" choose the correct answer below. a. the ordinal level of measurement is most appropriate because the data can be ordered comma but differences left parenthesis obtained by subtraction right parenthesis cannot be found or are meaningless. nothing nothing nothing nothing nothing b. the interval level of measurement is most appropriate because the data can be ordered comma differences left parenthesis obtained by subtraction right parenthesis can be found and are meaningful comma and there is no natural starting point. c. the nominal level of measurement is most appropriate because the data cannot be ordered. nothing d. the ratio level of measurement is most appropriate because the data can be ordered comma differences left parenthesis obtained by subtraction right parenthesis can be found and are meaningful comma and there is a natural starting point.
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
You know the right answer?
Java Eclipse Homework Puppet Theater Package: Chall11B
Class: PuppetApp

PUPPET AS...
Questions
question
Mathematics, 26.02.2021 21:30
question
Social Studies, 26.02.2021 21:30
question
Mathematics, 26.02.2021 21:30
question
Business, 26.02.2021 21:30
question
Mathematics, 26.02.2021 21:30
question
Chemistry, 26.02.2021 21:30
Questions on the website: 13722367