Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Admission rate to the local theater are based on age. Write an if/else statement

ID: 3769906 • Letter: A

Question

Admission rate to the local theater are based on age. Write an if/else statement to ass correct value to the double variable Admit - using the following table. Assume the able age holds a positive integer value. Write a for loop to print the integers from 1 to 100. Make sure the output is readable with 10 integers on a line and having a comma and space after each value. Write a for loop to print your name 20 times, using a separate line for each. Using a while loop, write the code to print the multiples of 5, starting with 5 times 1 and ending with 5 times 10. Suppose your Fortune is an integer variable. Write a segment of Java code that uses a switch statement to print the following responses Write code to ask the user to enter an integer value between 100 and 350. Write a while loop that verifies that the user enters a value in that range.

Explanation / Answer

Multiple Questions : Answering first question in the page , that is Qn 12. Please post single question at a time.

Answer:

if (age < 12)
   Admit = 4.00;
else if(age > 58)
   Admit = 5.00;
else
   Admit = 6.50;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote