Question
Additional Requirements : You will utilize prompt() functions to request input from the customer. You will utilize the alert() function to display your output as
Additional Requirements:
You will utilize prompt() functions to request input from the customer.
You will utilize the alert() function to display your output as a clear and understandable message to the customer.
Variable names should be descriptive. For example, if a program is calculating the tip given at a restaurant, an appropriate variable name may be tipAmount.
Additional Information:
Since the content of a text box - which is what the prompt() function generates - is going to be used in mathematical operations, use the function parseInt() to ensure that the numeric input is treated as numeric data. Syntax example: numericVariable = parseInt(numericVariable)
To simplify the comparison of text data entered by the user, it is often easier to convert this text to upper case using the notation below. Syntax example: textVariable = textVariable.toUpperCase();
The airline company that needed the flowchart and pseudocode for calculating a final price for has given you the responsibility of creating a program for that purpose The requirements remain the same as those indicated for the flowchart: the program will calculate the total fee final price that a customer will pay for checked baggage to a major airline. The total fee is charged based on the number of bags checked and the flier's membership category The fees are listed on the following table Membership Number of bags 2nd bag 1st bag Gold Platinum Silver No charge No charge $20 No charge $30 $30 3rd bag or more bags $80 each $80 each $80 each The output should display the membership category, number of bags and total feeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started