Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

writing a simple calculator program that gets input from the user, does some calculation, and outputs the results to the user. Your program must have

writing a simple calculator program that gets input from the user, does some calculation, and outputs the results to the user.

Your program must have at least one input and at least one output, but you can choose the type of calculator you want to write. Some examples are:

Converting Celsius to Fahrenheit,

Converting liters to gallons,

Calculating the number of days in a certain number of seconds (or vice versa),

Calculating the final price of an item after discount and shipping,

And so on. Pick something that is meaningful to you.

Converting liters to gallons,

Calculating the number of days in a certain number of seconds (or vice versa),

Calculating the final price of an item after discount and shipping,

And so on. Pick something that is meaningful to you.

Your name as the author and a comment with a brief description of the program.

A comment which includes the input list (the variables you are asking the user to input). Sample from video: # Input List: item_price, discount_percent, shipping_cost

A comment which includes the output list (the variables the program is outputting to the user).

A block of comments with the full pseudocode for your program, following the same style as the pseudocode in the Gaddis text, except that you should use lower_case_letters_with_underscores_between_each_word for your variable names (Gaddis uses camelCaseVariableNames instead). Your pseudocode must include everything necessary for someone else to write your Python code.

The Python code itself (which should work correctly - be sure to test your program with multiple inputs). Make sure to "declare" all variables to the correct type.

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

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

=+j Explain the relationship between unions and MNEs.

Answered: 1 week ago