Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program with a series of statements to complete the following objectives. You will use assignments, eval, int, float, input, print, strings, numbers, and

Write a program with a series of statements to complete the following objectives. You will use assignments, eval, int, float, input, print, strings, numbers, and mathematical operators. All items in the list below should be contained in one program.
Print out to the screen the following:
Your name
Get two numbers from the user (real numbers with a decimal point). Perform the following operations on the two numbers.
Print both numbers out as integers.
Print both numbers out as real numbers.
Perform each of the operations and print out the result:
addition
subtraction
multiplication
division
1st number to the power of 2
2nd number to the power of 3
Integer division
Remainder division (modulus)
Print "End of Program"
Use print statements to identify what you are doing for each operation and the resulting number.
Submit the completed code back to this assignment.

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 Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

=+2. How can the revenue model of the music industry be described?

Answered: 1 week ago