Question

In: Computer Science

amusement park that charges different rates for different age groups: (1) Admission for anyone under age...

amusement park that charges different rates for different age groups: (1) Admission for anyone under age 4 is free; (2) Admission for anyone between the ages of 4 and 18 is $5; (3) Admission for anyone age 18 or older is $10. Write a Python program that outputs a person's admission fee.

Please give me the answer with showing the full details how to do it in jupitar note book. The answer is in the chegg its so confusing and i want to see the full details in jupitar notebook.

Solutions

Expert Solution

Code

age=int(input("enter age of a person: "))#press shift+Enter and then type the age the press Enter

if(age<4):
    print("No admission fee.")
elif(4<=age<=18):
    print("admission fee is $5")
else:
    print("Admission fee is $10")

#we can write segments of code in each cell write a segment of code and
#press shift+Enter or just press "Run" on the menu.
#to run it to see output.you can add new cells between cells and
#remove cells by using the options above

Image in Jupyter


Related Solutions

There is a new amusement park under construction in town and the manager of the project...
There is a new amusement park under construction in town and the manager of the project has hired you to design a "Zero-Gravity" room. (a) Based on your knowledge of nature of electric charge and electric forces, how will you design such a facility? Comment on components of the room, and explain how it will work for walk in customers? What would be the safety concerns and measures? (b) Assume that your design has been approved and facility has been...
Playland at Pacific National Exhibition is an amusement park offering 31 different rides (including 4 rollercoasters...
Playland at Pacific National Exhibition is an amusement park offering 31 different rides (including 4 rollercoasters and 1 water ride). The guests who are 48” or taller can go on any ride they want and so they get more value from visiting the park; let us say their individual demand is given by P = 5 – 0.25qO, where P is the price per ride ($ per ride) and qO is the number of the rides (per day) (the subscript...
Playland at Pacific National Exhibition is an amusement park offering 31 different rides (including 4 rollercoasters...
Playland at Pacific National Exhibition is an amusement park offering 31 different rides (including 4 rollercoasters and 1 water ride). The guests who are 48” or taller can go on any ride they want and so they get more value from visiting the park; let us say their individual demand is given by P = 5 – 0.25qO, where P is the price per ride ($ per ride) and qO is the number of the rides (per day) (the subscript...
Playland at Pacific National Exhibition is an amusement park offering 31 different rides (including 4 rollercoasters...
Playland at Pacific National Exhibition is an amusement park offering 31 different rides (including 4 rollercoasters and 1 water ride). The guests who are 48” or taller can go on any ride they want and so they get more value from visiting the park; let us say their individual demand is given by P = 5 – 0.25qO, where P is the price per ride ($ per ride) and qO is the number of the rides (per day) (the subscript...
1. Describe the Unemployment among the different age groups. Describe the Unemployment among different races. Describe...
1. Describe the Unemployment among the different age groups. Describe the Unemployment among different races. Describe Unemployment based on education. Describe the current Unemployment's effect on society and the economy in the long run. You are in charge of recommending a new economic policy that will directly decrease the future's unemployment rate. Explain what your policy would look like. Describe your timeline for effect on unemployment rates; will it be right away, or will it be a long-term solution? Why?
Question 1 (9 marks) A company is building an amusement park and has the following projected...
Question 1 A company is building an amusement park and has the following projected cashflows. Costs consist of building costs and staff salaries:     Year Building costs (assume as being paid at start of each respective year) 1 $100,000 2 $50,000 3 $30,000 4 $45,000 5 $0 for year 5 and all future years for building costs Staff salaries $4,000 for year 1, increasing by a discrete step of $100 at the start of each future year, but paid continuously...
9.) Explain how the fatality rate is different across different age groups with COVID-19 (1 point)....
9.) Explain how the fatality rate is different across different age groups with COVID-19 (1 point). 10.) Explain why you think that there is a difference in these different age groups. 11.) List the symptoms of a mild case of COVID-19. 12.) List the symptoms of a severe case of COVID-19. 13.) What does the acronym A.R.D.S. stand for? 14.) Describe how A.R.D.S. develops in people with severe cases of COVID-19. 15.) Define R0 as it pertains to a virus’s...
Java Part 2 of 4 - Amusement Park Programming Project MUST BE COMPATIBLE WITH PART 1...
Java Part 2 of 4 - Amusement Park Programming Project MUST BE COMPATIBLE WITH PART 1 https://www.chegg.com/homework-help/questions-and-answers/java-part-1-4-amusement-park-programming-project-requirements-use-java-selection-construct-q40170145?trackid=ERIFssNL Requirements: Use the Java selection constructs (if and if else). Use the Java iteration constructs (while, do, for). Use Boolean variables and expressions to control iterations. Proper error handling. Class: Merchandise – models merchandise available in the gift shop such as t-shirts, sweatshirts, and stuffed animals. Instance Fields: id : long – to identify the specific merchandise item. category : String – to...
The amount of exercise needed by different age groups and the types of exercises suitable for...
The amount of exercise needed by different age groups and the types of exercises suitable for each age group vary. How much exercise do you get in a week (7 days)
A researcher wanted to know if a particular brand was preferred by different age groups. The...
A researcher wanted to know if a particular brand was preferred by different age groups. The researcher observed the data below. Is there a relationship between age and brand? Brand A Brand B Brand C Under 30 120 130 110 30 – 50 77 127 140 50 and older 84 100 98 Which test are you using? What are your H0 (null hypothesis) and Ha (alternative hypothesis)? Calculate your statistic. What decision does this inform you to make and why?...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT