Your instructor has asked you to write a program that uses simple rules to help determine if a person should take the train, drive their car, or ride a bike, depending on the conditions of the weather and the amount of gas in the car’s tank.
The program has the following requirements:
How should you complete the code? To answer, select the appropriate code segments in the answer area.
The ABC company offers a mid-week discount of 10% on Wednesdays.
You need to write a JavaScript function that meets the following requirements:
You create the following code. Line numbers are included for reference only.
You must complete the code at lines 03, 04, and 07.
How should you complete the code? To answer, select the appropriate code segments in the answer area.
NOTE: Each correct selection is worth one point.
You are creating a JavaScript function that returns a date the specified number of months in the future of the current date.
The function must meet the following requirements:
How should you complete the code? To answer, select the appropriate code segments in the answer area.
NOTE: Each correct selection is worth one point.
You are designing a web page with a script that must dynamically change the content of a paragraph element to display the value returned by the function randomQuote().
You have created the following code. Line numbers are included for reference only.
Which code segment should you use at line 08?
You are using JavaScript to create a function that calculates admission price.
The function must meet the following requirements:
How should you complete the code? To answer, select the appropriate code segments in the answer area.
NOTE: Each correct selection is worth one point.