Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

00 Jay Street, Brookhn, NY 11201-1909 EMT 2390L - Lab 5 Instructions: Create a new script and name it lab5. Include the following in your

image text in transcribed
00 Jay Street, Brookhn, NY 11201-1909 EMT 2390L - Lab 5 Instructions: Create a new script and name it lab5. Include the following in your script 1- 2- 3- A function getScore that will A global variable named course with "EMT 2390L" assigned to it as default value A global variable named score that will store a number between 0 and 100. a. Ask the user to enter the score and store it in the variable score b. Validate that the value entered is between 0 and 100 using a loop. The loop will check that the value in score is between 0 and 100 If the value of score falls outside of that range, display a waning message and keep asking the user until a valid value is entered 4- A function displayGrade that will Read the value of the global variable score. Using the ifstatement, display the course and the letter grade like this: Your grade for YOUR COURSE is YOUR GRADE using the following scale: A 93-100 A- 90-92 B+ 87-89 83-86 B- 80-82 a. b. C+ 77-79 C 70-76 D 60-69 F 0-59 Your output should look like the following examples: Your grade for EMT 2390L is A Your grade for EMT 1111 is B+ 5- In the body of the script a. First invoke the function getScore b. Then invoke the function display Grade 6- Show the script running and the results to the professor. This is an in-class lab due at the end of the class

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

Samsung Galaxy S23 Ultra Comprehensive User Manual

Authors: Leo Scott

1st Edition

B0BVPBJK5Q, 979-8377286455

More Books

Students also viewed these Databases questions

Question

What qualities should a successful manager possess?

Answered: 1 week ago