IT-202: Assignment #6, Spring Quarter 2025

Overview

Your page will simulate a pretty low key pizza shop.

Here is the overview of the page:

Items

Calculations

Given the above information, the cost calculation should be fairly straight-forward. Start with the cost based on their choice for the size of their pizza. .

Output

Output to a div section as usual. Output the cost to 2 decimal places. Your output should include their name and the cost. Your output should follow this format:

Thank you, <name>, for your order! Your total cost is $<cost>.

Your output should match mine as shown in the examples below. (e.g. include the dollar sign, and the period at the end of each sentence). Also notice that there is a comma before and after the name.

Your JavaScript code should be placed in an external JS file.

Styling

Only if you want to. I want to keep it relatively straight forward, and limited to JS this week, since this is stuff you'll need to know for your exam.

Examples

Here is a version of the page executed with various different options applied so you can check your calculations:

Example: Medium pizza with sausage, and they have agreed to join the mailing list.

 

Example: Large pizza, all three toppings, agree to be added to the mailing list.

 

Submission Requirements