Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION #1 Write a program that asks the user to enter two words, change them to upper case, then prints them in alphabetical order Sample
QUESTION #1
Write a program that asks the user to enter two words, change them to upper case, then prints them in alphabetical order
Sample Run
First word: Zebra Second word: Cat CAT ZEBRA
QUESTION #2
Write a function named ilovepython that prints out I love Python three times. Then, call that function.
QUESTION #3
Write a function named print_sum that accepts three numbers as parameters and prints the sum.
Sample Run
Enter the 1st number: 11 Enter the 2nd number: 9 Enter the 3rd number: 8 The sum: 28
QUESTION #4
THIS IS A SIMPLE, HIGH SCHOOL COMPUTER SCIENCE COURSE IN PYTHON. PLEASE DON'T MAKE TOO COMPLICATED, THANK YOU!
Write a program that prompts the user to input a letter grade in either capital or lowercase. Your program should then output the correct number of the GPA. See the table below for possible inputs and expected outputs. Your program should define at least one function named GPAcalc' that is called from your main program. Note: If the input is anything other than "A" "B" "C", "D" or F", your program should output the string "Invalid". Input: Letter Grade Expected output: GPA value 4 2 0 Anything else Invalid Sample Runs Run 1 Enter your Letter Grade: a Your GPA score is: 4 Run 2 Enter your Letter Grade: A Your GPA score is: 4 Run 3 Enter your Letter Grade: C Your GPA SCOre is: 2 Run 4 Enter your Letter Grade: G Your GPA score is: InvalidStep by Step Solution
There are 3 Steps involved in it
Step: 1
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