Question: 3. a) Write a program to do the following. A user is asked to enter the last name. Then the user is asked to enter

 3. a) Write a program to do the following. A user

3. a) Write a program to do the following. A user is asked to enter the last name. Then the user is asked to enter the first name. Then the user is asked to enter the score in python exam. A grade should be printed out according to the following rule. C+ (77% -79%) F(59% - below) A+ (97% +) A (93% -96%) A- (90% -92%) B+ (87% -89%) B (83% -86%) B- ( 80% - 82%) C (73% 76%) C- (70% - 72%) D+ (67% -69%) D (63% -66%) D- (60% -62%) For example if the user enters 97.1 as the score, the output should say: Your name is John Smith. Your score in python exam is 93.2. You got a grade of A+. if the user enters 96.6, use rounding to decide about the grade. I b) Write a program to do the following: Generate 50 random integers of three digits. Count how many of these are divisible by 7. Print the output that says something like this. Out of the 30 random numbers that are generated, 12% are divisible by 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!