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 01:30
How do you set up a slide show to play continuously, advancing through all the slides without requiring your interaction? a. click set up slide show, and then select the loop continuously until ‘esc' and show without narration options. b. click set up slide show, and then select the loop continuously until ‘esc' and use timings, if present options. c. click set up slide show, and then select the show presenter view and use timings, if present options. d. click set up slide show, and then select the show without animation and browsed at a kiosk (full screen) options.
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
What is the main benefit of minimizing the ribbon in word? more options will be accessible through customized keystrokes. more of the document will be viewable without needing to scroll. fewer controls will be accessible to the user by using the mouse. fewer editing options will be available without entering a password.
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
In cell h5 enter a formula that will calculate the percentage of attendees that went to the altamonte springs job fair in 2018.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
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, 07.10.2019 14:30
question
Chemistry, 07.10.2019 14:30
Questions on the website: 13722361