Unformatted text preview: Marks Alphabetical grade Grade point 80100 A 4.00 7579 A3.75 7074 B+ 3.50 6569 B 3.00 6064 B2.75 5559 C+ 2.50 5054 C 2.00 4749 C1.75 4446 D+ 1.50 4043 D 1.00 39 or less F 2. Write a program that prompts the user to enter an integer and determines whether it is divisible by 5 and 7, whether it is divisible by 5 or 7 and whether it is divisible by 5 or 7 but not both. Here is a sample runs of this program: Enter an integer: 10 Is 10 divisible by 5 and 7? False Is 10 divisible by 5 or 7? True Is 10 divisible by 5 or 7, but not both? True...
View
Full Document
 Spring '08
 Burney
 grade point, integer data types, ifelse statement, Programming Lab Sheet

Click to edit the document details