Instructions: Program and solve the following tasks in a script file; publish it as a PDF and submit it on Blackboard in the content section. Ensure that you put the proper header information (your name, course name, date, HW number, etc.) as shown in the class. Divide the script into sections for each task. Task 1A: Write a program that accepts a numerical value x from 0 to 100 as input and computes and displays the corresponding letter grade given by the following table. A x ≥90 B 80 x 89 C 70x79 D 60 ≤ x ≤ 69 F x < 60 a. Use nested if statements in your program (do not use elseif). b. Use only elseif clauses in your program. Use the ranges, i.e., starting and ending points for all grades. When assigning a letter grade, ensure that you use the single quotes for the letters like this: lettergrade= 'A'. Test out the program for numericalgrade=55. Hint below: numericalgrade=83; if numericalgrade>=90 && numericalgrade<=100 lettergrade='A'; elseif numericalgrade>=80 && numericalgrade<=89 lettergrade='B'; end lettergrade Task 1B: Randomize the sequence of your conditional branches of Task 1A and run the script. Comment "Yes/No” at the bottom of your script if the sequence of the branches affects the output or not i.e., if I put the condition for A at the bottom and the condition for D at the top, and the condition for C before B etc. Task 2A: Solve Task 1A in sequential order (A, B, C...) but without the upper bounds of the numerical ranges, i.e., numericalgrade>=70, numericalgrade>=90... Task 2B: Randomize the sequence of your conditional branches of Task 2A and run the script. Comment "Yes/No" at the bottom of your script if the sequence of the branches affects the output or not.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Instructions: Program and solve the following tasks in a script file; publish
it as a PDF and submit it on Blackboard in the content section. Ensure that
you put the proper header information (your name, course name, date, HW
number, etc.) as shown in the class. Divide the script into sections for
each task.
Task 1A:
Write a program that accepts a numerical value x from 0 to 100 as input
and computes and displays the corresponding letter grade given by the
following table.
A x ≥90
B
80 x 89
C
70x79
D
60 ≤ x ≤ 69
F
x < 60
a. Use nested if statements in your program (do not use elseif).
b. Use only elseif clauses in your program.
Use the ranges, i.e., starting and ending points for all grades. When
assigning a letter grade, ensure that you use the single quotes for the letters
like this: lettergrade= 'A'. Test out the program for numericalgrade=55.
Hint below:
numericalgrade=83;
if numericalgrade>=90 && numericalgrade<=100
lettergrade='A';
elseif numericalgrade>=80 && numericalgrade<=89
lettergrade='B';
end
lettergrade
Task 1B:
Randomize the sequence of your conditional branches of Task 1A and run
the script. Comment "Yes/No” at the bottom of your script if the sequence
of the branches affects the output or not i.e., if I put the condition for A at
the bottom and the condition for D at the top, and the condition for C
before B etc.
Task 2A:
Solve Task 1A in sequential order (A, B, C...) but without the upper
bounds of the numerical ranges, i.e., numericalgrade>=70,
numericalgrade>=90...
Task 2B:
Randomize the sequence of your conditional branches of Task 2A and run
the script. Comment "Yes/No" at the bottom of your script if the sequence
of the branches affects the output or not.
Transcribed Image Text:Instructions: Program and solve the following tasks in a script file; publish it as a PDF and submit it on Blackboard in the content section. Ensure that you put the proper header information (your name, course name, date, HW number, etc.) as shown in the class. Divide the script into sections for each task. Task 1A: Write a program that accepts a numerical value x from 0 to 100 as input and computes and displays the corresponding letter grade given by the following table. A x ≥90 B 80 x 89 C 70x79 D 60 ≤ x ≤ 69 F x < 60 a. Use nested if statements in your program (do not use elseif). b. Use only elseif clauses in your program. Use the ranges, i.e., starting and ending points for all grades. When assigning a letter grade, ensure that you use the single quotes for the letters like this: lettergrade= 'A'. Test out the program for numericalgrade=55. Hint below: numericalgrade=83; if numericalgrade>=90 && numericalgrade<=100 lettergrade='A'; elseif numericalgrade>=80 && numericalgrade<=89 lettergrade='B'; end lettergrade Task 1B: Randomize the sequence of your conditional branches of Task 1A and run the script. Comment "Yes/No” at the bottom of your script if the sequence of the branches affects the output or not i.e., if I put the condition for A at the bottom and the condition for D at the top, and the condition for C before B etc. Task 2A: Solve Task 1A in sequential order (A, B, C...) but without the upper bounds of the numerical ranges, i.e., numericalgrade>=70, numericalgrade>=90... Task 2B: Randomize the sequence of your conditional branches of Task 2A and run the script. Comment "Yes/No" at the bottom of your script if the sequence of the branches affects the output or not.
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education