Question

Part II: Problem Solving (20 points) Develop a solution for the problem below from the textbook....

Part II: Problem Solving (20 points)

Develop a solution for the problem below from the textbook. Your solution must include:

  1. PAC (5 points)
  2. Algorithm (15 points)

Write an algorithm for calculating ta student’s letter grade given the numeric grade based on the following categories.

A: numeric grade between 90 & 100, inclusive. (90 is considered an A)

B: numeric grade between 80 & 89

C: numeric grade between 70 & 79

D: numeric grade between 60 & 69

F: numeric grade below 60

To solve this problem, first, read in the numeric grade, then calculate the corresponding letter grade, then print out that letter grade.

In order to calculate the corresponding letter grade, you need to check the different categories in a specific order. One possibility is to first check for the A category, then for the B category, then C, and so on.

After solving this problem, can you think of another way to write your algorithm where you check the categories in a different order? For example, first check for the F category, then D, then C, and so on.

Write two different algorithms for solving this problem. Each algorithm checks the categories in a different order.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

eps1 Tead number grade 1. 9. check f (numbexGade =90 amd numberGade <= loo) tue display letter gnde A check else if(rumberGiaSteps number GTrade 1. ead ff (numberGrYade o amd 2. check numberGade 60): tue Letter Gisade F display 3. elke f (numberGradeCAUSERS\nagasai Desktop\grade1.py - EditPlus iCommand Prompt X X File Edit View Search Document Project Tools Browser ZC WindCAUsers\nagasai\Desktop\grade1.py - EditPlus X X Command Prompt File Edit View Search Document Project Tools Browser ZC Windo

Add a comment
Know the answer?
Add Answer to:
Part II: Problem Solving (20 points) Develop a solution for the problem below from the textbook....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 7. Develop a solution for the problem below from the textbook. Your solution should include a PAC and an Algorithm...

    7. Develop a solution for the problem below from the textbook. Your solution should include a PAC and an Algorithm. (14 points I One of the jobs that Joe Roberts has been given at Work is to order special paper for a report for a board meeting. The paper comes in reams of 500 sheets. He always makes five more copies than the number of people that will be there. Joe wants to know how many reams of paper he...

  • Many classes calculate a final grade by using a weighted scoring system. For example, “Assignments” might...

    Many classes calculate a final grade by using a weighted scoring system. For example, “Assignments” might be worth 40% of your final grade. To calculate the grade for the Assignments category, the teacher takes the percentage earned on the assignments and multiplies it by the weight. So if the student earned a 90% total on the Assignments, the teacher would take 90% x 40, which means the student earned a 36 percent on the Assignments section. The teacher then calculates...

  • Part II: Critical thinking, problem-solving 75 points Note: It is essential that you draw and write neatly in order...

    Part II: Critical thinking, problem-solving 75 points Note: It is essential that you draw and write neatly in order to receive the full points. If you don't you receive zero partial credit. 1. Consider the molecule 1-butanol along the C-Cbond. Construct the following 1) anti conformer 2) a gauche conformer 3) eclipsed conformer. Which is least stable and which is most stable? Explain!

  • USE C++ FOR THE CODE THAT CAN RUN IN VISUAL STUDIO 2019 (or a complier) Ignore...

    USE C++ FOR THE CODE THAT CAN RUN IN VISUAL STUDIO 2019 (or a complier) Ignore the last paragraph on the bottom of the page! \ Write a program YourName-Assignments (replace Your Name with your actual name, no spaces) that reads from students' records (one student per line) in the following format: Last Name Tests Grade Assignments Grade and computes and outputs (to the console) the STUDENT STATISTICS in a table format one line per student: Student Name Total Points...

  • 1. Solving the linear programming problem Maximize z 3r1 2r2 3, subject to the constraints using ...

    1. Solving the linear programming problem Maximize z 3r1 2r2 3, subject to the constraints using the simplex algorithm gave the final tableau T4 T5 #210 1-1/4 3/8-1/812 0 0 23/4 3/8 7/8 10 (a) (3 points) Add the constraint -221 to the final tableau and use the dual simplex algorithm to find a new optimal solution. (b) (3 points) After adding the constraint of Part (a), what happens to the optimal solution if we add the fourth constraint 2+...

  • (4 points) This problem is concerned with solving an initial boundary value problem for the heat ...

    (4 points) This problem is concerned with solving an initial boundary value problem for the heat equation: u,(x, t)- uxx(x,), 0

  • I asked a question similar to this one, which was answered perfectly. Another practice problem is...

    I asked a question similar to this one, which was answered perfectly. Another practice problem is now asking me to use two classes and get user input. For this Java program, you will write two classes: GradeCalculator and GradeCalculatorDriver In the GradeCalculator class, compute the final average and letter grade for a particular student. The final average is calculated according to the following rules: 1) There are ten exams scored out of 100 points 2) The lowest exam score is...

  • Part II. Problem Solving. Please show ALL work for credit. Solutions with no work receive no...

    Part II. Problem Solving. Please show ALL work for credit. Solutions with no work receive no points. Question 1 (18 points) Suppose that the inverse Demand and Supply functions are : P = 200-29 and P = 207-09. The government imposes a per unit tax of $3. Using the graph below, calculate the following: (Hint: please note that working with inverse functions is easier as it saves time. As a first step, you need to apply the tax in the...

  • Create a new program in Mu and save it as ps3.4.3.py and take the code below...

    Create a new program in Mu and save it as ps3.4.3.py and take the code below and fix it as indicated in the comments: # Consult this blood pressures chart: http://bit.ly/2CloACs # # Write a function called check_blood_pressure that takes two # parameters: a systolic blood pressure and a diastolic blood # pressure, in that order. Your function should return "Low", # "Ideal", "Pre-high", or "High" -- whichever corresponds to # the given systolic and diastolic blood pressure. # #...

  • Problem 3. (15 points) Consider the circuit shown below. The arrows show the assumed direction of...

    Problem 3. (15 points) Consider the circuit shown below. The arrows show the assumed direction of the current flow 352 5Ω 2 S2 352 12 21 (i) Apply Kirchoff's junction rule and Kirchoff's loop rule to find the necessary set of equations required to solve for the currents, i. Write the equations in matrix form Clearly write out A and b. [Note: This is not the most efficient way to solve this problem. We are not trying to be efficient,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT