0% found this document useful (0 votes)
25 views2 pages

Topic 5 Lab

The document outlines lab activities for CIT 415: Web Applications Programming, focusing on JavaScript and HTML5. It includes three activities: developing a web app for future value computation using a for loop, designing a lunch order interface with a ternary operator, and creating an invoice total calculator based on customer type and discount percentages. A discount table is provided to guide the invoice calculations.

Uploaded by

theeeclipse17
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Topic 5 Lab

The document outlines lab activities for CIT 415: Web Applications Programming, focusing on JavaScript and HTML5. It includes three activities: developing a web app for future value computation using a for loop, designing a lunch order interface with a ternary operator, and creating an invoice total calculator based on customer type and discount percentages. A discount table is provided to guide the invoice calculations.

Uploaded by

theeeclipse17
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CIT 415: Web Applications Programming (with JavaScript & HTML5)

Topic 5 Lab Activities

Activity 5-1: Develop a Web App with the user interface below and computes future value using the
for loop construct.

Activity 5-2: Design a Web App that that presents a user with the interface below where she can place her
lunch order. Upon clicking the Calculate button, the system presents the result using an alert box as shown.
Hint: Use the ternary operator to implement the selections and defined in a function declaration.

1
Activity 5-3: Develop an Invoice total calculator web App that computes invoice on an order given
customer type and invoice subtotal based on a pre-determined discount percentage. Discount percentage
rates are specified in the table below.

Discount Table

Customer Type Invoice Subtotal ($) Discount Percentage


Regular < 100 0%
>= 100 - < 250 10%
>= 250 - < 500 25%
>= 500 30%
Loyalty Program >0 30%
Honored Citizen <500 40%
>=500 50%

You might also like