Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This assignment you will design two buttons Grade to Score Range and Score to Grade . Each button will trigger its corresponding function which prompts
This assignment you will design two buttons Grade to Score Range and Score to Grade Each button will trigger its corresponding function which prompts the user to provide input. Then each function will display what is shown in the table provided, based on the users input. One of your functions will use a "JavaScript switch" statement, the other can use "JavaScript ifelseif statements. You are expected to handle invalid inputs and user errors properly. Click the button below to convert Score to Grade:
Click the button below to convert Grade to Score:
Convert to Score Range
If user inputs a negative number, proper error message should be displayed,
Click the button below to convert Score to Grade:
Input is invalid, grade cannot be negative
Click the button below to convert Grade to Score:
If user inputs a number above a different error message should be displayed,
tableGrade to Score Range AaBbScore to Grade CcDd or FfIf user inputs AIf user inputs AIf user inputs BIf user inputs AIf user inputs CIf user inputs BIf user inputs DIf user inputs CIf user inputs FIf user inputs DtableNote: Display proper errormessage for invalid input.If user input is below F
Step 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