Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python Task-1 Write a programme to take two inputs of two different numbers (float) from the user pointed at by two variables x and y

python
image text in transcribed
Task-1 Write a programme to take two inputs of two different numbers (float) from the user pointed at by two variables x and y respectively. Add the numbers and have the result in the variable z. Print the text "The total of two numbers is concatenated with the sum of the numbers y" after changing it by 'str' into string form. Task-2 Correct the following programme. Save the corrected code by copying and pasting it in the MS Word file. X-int(input("please enter an integer value :") Y = int(input("Please enter another integer value: ") a = int(x) b = int(y) za%x print(2) Task-3 Use the corrected code in Task-2, edit the code to multiply the two input values and then print the result of the multiplication. Save the corrected code by copying and pasting it in the MS Word file. Task-4 Use the code in Task-3, edit it then to find the value x to the power y and then print the result of the exponentiation. Save the corrected code by copying and pasting it in the MS Word file

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_2

Step: 3

blur-text-image_3

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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

What is communicative disease?

Answered: 1 week ago