subject

There is an amusement park where children of a certain age get a discount. At the ticket kiosk, the computer asks the age of the participant. If their age is younger than 15, the entrance price is $20. If their age is 15 or older, the price is $40. To address the scenario, you will need to code a branching decision that does the following:

Asks the user for their age
Creates a message that will indicate the price of the ticket. The message should say, “The entrance price is .”
Prints the correct price based on the user’s input of their age. What is the right code language for this coding?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
What allows you to create a wireless connection among your smart devices
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krĂłtkofalĂłwke w the walking dead w 4 epizodzie
Answers: 1
question
Computers and Technology, 25.06.2019 07:00
What statement would cause polarization
Answers: 1
question
Computers and Technology, 25.06.2019 09:20
Part d: float check string has a method s.isdigit() that returns true if string s contains only digits and false otherwise, i.e. s is a string that represents an integer. write a function named float_check that takes one parameter that is a string and returns true if the string represents a float and false otherwise. for the purpose of this function we define a float to be a string of digits that has at most one decimal point. note that under this definition an integer argument will return true. remember “edge cases” such as “45.” or “.45”; both should return true. for example: float_check('1234') returns true float_check('123.45') returns true float_check('123.45.67') returns false float_check('34e46') returns false float_check('.45') returns true float_check('45.') returns true float_check('45..') returns false
Answers: 2
You know the right answer?
There is an amusement park where children of a certain age get a discount. At the ticket kiosk, the...
Questions
question
Mathematics, 31.01.2021 20:40
question
Physics, 31.01.2021 20:40
question
Mathematics, 31.01.2021 20:40
question
Mathematics, 31.01.2021 20:40
question
Mathematics, 31.01.2021 20:40
question
English, 31.01.2021 20:40
question
Mathematics, 31.01.2021 20:40