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, 21.06.2019 18:00
What ordering of tcp flags makes up the three-way handshake?
Answers: 2
question
Computers and Technology, 22.06.2019 03:00
You install teamviewer on your workstation at home so that you can ac ess it when on the road. how can you be assured that unknown users cant access your computer through team viewer?
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Which of the following is an example of synchronous communication? a) e-mail b) voicemail c) telephone conversation d) text message.
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
History, 26.09.2021 05:30
question
Mathematics, 26.09.2021 05:40
question
Mathematics, 26.09.2021 05:40
question
Physics, 26.09.2021 05:40
question
Mathematics, 26.09.2021 05:40
Questions on the website: 13722362