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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 3E
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,