Lab%203 - Lab Three[30 points 5 points extra credit There...

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

View Full Document Right Arrow Icon
Lab Three [30 points + 5 points extra credit] There are two parts to this lab and you must turn in a zip file to KS-Online for each part. Try to work through the lab on your own, but if you get stuck, ask a neighbor or the in- structor for help. Part A: Selection Statements (a.k.a. Choices) [15 points] Step 1 - Write the algorithm Write an algorithm (in pseudocode) that reads a number from the user and then prints out the corresponding letter grade according to the CIS 209 grading scale (see syllabus). [6 points] The algorithm must properly handle invalid input. [2 points] Step 2 - Write the program Convert your algorithm into a C program. [7 points] Step 3 - Test the program Run your program several times, each time with a different input, and make sure the output is correct each time. The output of your program should look similar to: and another example: CIS 209 - Selection and Repetition - Page 1 of 3 Please enter a grade between 0 and 100: 87.3 The letter grade is: B Please enter a grade between 0 and 100: 203 Invalid input, the grade must be between 0 and 100
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.

This note was uploaded on 09/28/2010 for the course MATH 210 taught by Professor Drzhao during the Spring '10 term at Kansas State University.

Page1 / 3

Lab%203 - Lab Three[30 points 5 points extra credit There...

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