Access Millions of academic & study documents

ooo Verizon 904 AM mygateway umsl edu C script SolutionOh

Content type
User Generated
Showing Page:
1/2
..ooo Verizon 9:04 AM mygateway.umsl.edu C /script>
Solution
Oh wow. Finally, you came up with an image it seems.
Good to see.
And the script for your problem is:
function fareCalc()
{
var age;
var msg;
age = prompt(\"Enter the age\");
if(age <= 12)
msg = \"Please pay a child\'s fare.\";
//if the user\'s age is over 12 and less than 60, notify the
user that they pay the adult\'s fare
else if(age <60)
msg = \"Please pay an adult\'s fare.\";
//if the user\'s age is 60 and above, notify the user that
they pay the senior\'s fare.
else
msg = \"Please pay an a senior\'s fare.\";

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/2

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
..ooo Verizon 9:04 AM mygateway.umsl.edu C /script> Solution Oh wow. Finally, you came up with an image it seems. Good to see. And the script for your problem is: function fareCalc() { var age; var msg; age = prompt(\"Enter the age\"); if(age ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4