Question
Write the codes and draw the flow chart for these problem. 1.Please only use if flow control, write a program to ask the user to
Write the codes and draw the flow chart for these problem.
1.Please only use “if” flow control, write a program to ask the user to input his/her letter
grade (A,B,C,D,F), and
If input “A”, show “Excellent!”;
If input “B”, show “Well Done!”;
If input “C”, show “Keep Working Hard and You Should Do Better Next Time!”;
If input “D” and “F”, show “Please Don’t Give Up!”;
If input other letters, show “Invalid grade, please try later.”
2. Please use “if ... else” ladder flow control, write a program to ask the user to input
his/her letter grade (A,B,C,D,F), and
If input “A”, show “Excellent!”;
If input “B”, show “Well Done!”;
If input “C”, show “Keep Working Hard and You Should Do Better Next Time!”;
If input “D” and “F”, show “Please Don’t Give Up!”;
If input other letters, show “Invalid grade, please try later.”
Step by Step Solution
3.51 Rating (154 Votes )
There are 3 Steps involved in it
Step: 1
Sure lets start with the first problem and create a Python code for it python grade inputPlease ente...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started