Answered step by step
Verified Expert Solution
Link Copied!

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 if-else-if" 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 110 a different error message should be displayed,
\table[[Grade to Score Range [A/a,B/b,,Score to Grade 0-110],[C/c,D/d, or F/f].,],[If user inputs A->90-100,If user inputs 100-110->A+],[If user inputs B->80-90,If user inputs 90-99->A],[If user inputs C->70-80,If user inputs 80-89->B],[If user inputs D->60-70,If user inputs 70-79->C],[If user inputs F->0-60,If user inputs 60-69->D],[\table[[Note:- Display proper error],[message for invalid input.]],If user input is below 60->F]]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

More Books

Students also viewed these Databases questions