• Write a python program to accept 2 numbers, if two numbers are same calculate Z=a2+b2, to of two number is equal calculate zero if modules Z=(2a5+3b5)/3b, if both the numbers are even calculate Z (a+b)?/(a*b), otherwise display Wrong Choice.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 7PP
icon
Related questions
Question
Conditional Statements - Practice Questions
• Write a python program to accept a number and
if the number is even calculate Z=x modulus y,
If number is positive calculate Z=x to the power y
If number is in between 1 and 10 calculate Z- (x+y)/2
If the number is equal to 0 calculate division of two numbers
by removing decimal.
Otherwise display Wrong input
ㅇ
• write a python program to accept 2 numbers,
if two numbers are same calculate Z=a²+b²,
oif modules of two number is equal to zero
Z=(2a5+3b5) /3b,
if both the numbers are even calculate Z-(a+b)?/(a*b),
otherwise display Wrong Choice.
calculate
Transcribed Image Text:Conditional Statements - Practice Questions • Write a python program to accept a number and if the number is even calculate Z=x modulus y, If number is positive calculate Z=x to the power y If number is in between 1 and 10 calculate Z- (x+y)/2 If the number is equal to 0 calculate division of two numbers by removing decimal. Otherwise display Wrong input ㅇ • write a python program to accept 2 numbers, if two numbers are same calculate Z=a²+b², oif modules of two number is equal to zero Z=(2a5+3b5) /3b, if both the numbers are even calculate Z-(a+b)?/(a*b), otherwise display Wrong Choice. calculate
Expert Solution
steps

Step by step

Solved in 5 steps with 5 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,