subject

G Write a function, computePrice(), that takes as two parameters: the age group and the ticket type, and returns the price for admission to the American Museum of Natural History. If the ticket type is "admission" and the age group is "adult", the price is $23. If the ticket type is "admission" and the age group is "child", the price is $13. If the ticket type is "admission" and the age group is "senior", the price is $18. If the ticket type is " exhibitions" and the age group is "adult", the price is $33. If the ticket type is " exhibitions" and the age group is "child", the price is $20. If the ticket type is " exhibitions" and the age group is "senior", the price is $27. If the ticket type or age group are not one of the above, it returns -1.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
In the context of an internet connection, llc stands for leased line connection liability limited company local loop complex local loop carrier
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
How can we take picture in this app
Answers: 1
question
Computers and Technology, 25.06.2019 15:00
What should my backround picture be? a. white-or-b. spiral
Answers: 1
You know the right answer?
G Write a function, computePrice(), that takes as two parameters: the age group and the ticket type,...
Questions
question
Mathematics, 15.07.2019 18:00
question
Mathematics, 15.07.2019 18:00
question
Mathematics, 15.07.2019 18:00
question
English, 15.07.2019 18:00
question
History, 15.07.2019 18:00
Questions on the website: 13722361