![Kittylover65](/avatars/13614.jpg)
Kittylover65
21.02.2020 •
Computers and Technology
Create a script that asks for the student's percentage point through a prompt box. Using the following scenarios write if else statements that determine the student's letter grade and display the grade in an alert box: Percentage Letter Grade >=90 A Between 80 and 89 B Between 70 and 79 C Between 60 and 69 D Lower than 60 F
Solved
Show answers
More tips
- F Family and Home How to Keep Your Home Warm: Tips and Tricks...
- D Dating, Love, Relationships Does a Person s Character Depend on the Color of Their Eyes?...
- O Other Childhood Fears: What Many of Us Experienced...
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
- A Art and Culture When Will Eurovision 2011 Take Place?...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
- F Family and Home Why Having Pets at Home is Good for Your Health...
Answers on questions: Computers and Technology
- H History 2. What important events were happening in the world during the Renaissance?...
- M Mathematics WRITE AN PROPORTION TO FIND HOW MANY POINTS A STUDENT NEEDS TO SCORE ON THE TEST. TEST WORTH 70% POINTS . TEST SORE 90 %...
- E English BTS ARMY QUESTION: What s your favorite song in Map of the Soul: 7...
Ответ:
Explanation:
Program :
var percentage= prompt("Enter the percentage of the student"); // take the input from the user.
if(percentage>=90)//check condition for greator than 90.
alert("your grade is \"A\"");
else if(percentage>=80) // check condition for 80 and 89.
alert("your grade is \"B\"");
else if(percentage>=70) // check condition for 70 and 79.
alert("your grade is \"C\"");
else if(percentage>=60) // check condition for 60 and 69.
alert("your grade is \"D\"");
else // check condition for less than 60.
alert("your grade is \"F\"");
Output:
If the user input 60, it will prints D.If the user inputs 59, it will prints f.Code Explanation:
The above code is in a javascript language, In which the first line is used to display the message and take the input from the user in the alert box.Then the percentage is checked by the help of in if, else if and else statement and print the grade.Then the grade is printed with the help of an alert box.Ответ:
CDD3 X C4XD
Explanation: