Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE IN PYTHON 1a. Write a PYTHON program that will ask the user for the number of courses they are taking, accept user input for

WRITE IN PYTHON

image text in transcribed

1a. Write a PYTHON program that will ask the user for the number of courses they are taking, accept user input for the grades for each of those courses then output the average for those courses. You must utilize try and except as well as ensure that all numbers being entered are greater than 0 (meaning, not negative numbers). 1b. Write a PYTHON program that will generate a random number between 1 and 100 (inclusive). The program will ask the user to guess the random number. The user will have 10 guesses. Each time the user guesses, the program will indicate if they are too high or too low, if the user guesses more than 10 times, the program will terminate by saying, they have run out of guesses. At all times, the user should be aware of the number of guesses they have remaining. If the user guesses the correct number, they should be congratulated on guessing the correct number, indicating how many guesses it took to guess it as well

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions

Question

Lo6 Identify several management development methods.

Answered: 1 week ago