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, 22.06.2019 10:30
You are almost finished updating a web site. as part of the update, you have converted all pages from html 4.0 to html5. the project is currently on schedule. however, your project manager has been asked by the marketing team manager to justify a day of time spent validating the site's html5 pages. the marketing team manager does not have technical knowledge of the internet or the web. which is the most appropriate explanation to provide to the marketing team manager?
Answers: 1
question
Computers and Technology, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
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, 30.08.2021 21:50
question
Mathematics, 30.08.2021 21:50
question
Mathematics, 30.08.2021 21:50