Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIS 1 1 5 2 0 2 4 SP ch 0 5 _ lab 0 2 Complete the python program below using onlineGDB = =

CIS1152024SP ch05_lab02
Complete the python program below using onlineGDB
============================== copy program below this line ===============================
# student name 2024SP ch05_lab02.py
'''
complete the python program below that does the following:
1. prompts the user to input a series of positive numbers
2. the entry of a negative number or zero (0) stops the input loop
3. the total of the numbers is displayed when the loop ends
4. think a priming input statement
'''
# ====================================== initialize accumulator
# ================================= start the loop
while num>0:
total+=num
# ============================== print results
print(f'the sum of the numbers input is {total:,.2f}')

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

Students also viewed these Databases questions

Question

Describe the four characteristics of a multinomial experiment.

Answered: 1 week ago

Question

6. How is revising different from proofreading?

Answered: 1 week ago