hw02 - CS 159 HW #02 5 Points Possible Due: February 6,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 159 – HW #02 5 Points Possible Due: February 6, 2012 at 11:00pm. Problem: Another college-level class is graded based ONLY on exam performance. There are a total of four exams in this course with the first three being worth 100 points each and a fourth exam worth 150 points. The scale for this class is 85% required to earn an A, 75% for B, 65% for C, 55% for D. Given four integers as input display the score for each exam, the grade earned on each exam, and the total and final grade for the course. Example Execution #1: Enter score for exam #1: 55 Enter score for exam #2: 70 Enter score for exam #3: 65 Enter score for exam #4: 100 Exam Score Grade ---------------- 1 55 D 2 70 C 3 65 C 4 100 C ---------------- Total: 290 Grade: D Example Execution #2: Enter score for exam #1: 84 Enter score for exam #2: 85 Enter score for exam #3: 86 Enter score for exam #4: 126 Exam Score Grade ---------------- 1 84 B 2 85 A 3 86 A 4 126 B ---------------- Total: 381 Grade: B Example Execution #3: Enter score for exam #1: 60 Enter score for exam #2: 65 Enter score for exam #3: 70 Enter score for exam #4: 98 Exam Score Grade ---------------- 1 60 D 2 65 C 3 70 C 4 98 C ---------------- Total: 293 Grade: C Example Execution #4: Enter score for exam #1: 94 Enter score for exam #2: 96 Enter score for exam #3: 85 Enter score for exam #4: 127
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

hw02 - CS 159 HW #02 5 Points Possible Due: February 6,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online