Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hello, i was having difficulty generating the particular output in the first picture. i am having issue where the whole calulator menu prints in case

hello, i was having difficulty generating the particular output in the first picture. i am having issue where the whole calulator menu prints in case of wrong selection. just need help in how to avoid that. i have attached my work in the next pictures as well. image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Current Eosult: 0.0 Calculatox Menu 0. Exit Frogram 1. Addition 2. Gubtraction 3. Multiplication 4. Diviaion 5. Exponentiation 6. Lograrithm 7. Diaplay Average Enter Menu Selection: Error: No calculatione yet to averdgel. Entez Menu BeIection: Thanka for ueing ehia caloulacor. Goodbyel mport math =1 um=0 10=0 vg=0.0 =. orint('Current Result: r ) while (True): Hisplay options for user to select print(' InCalculator Menu') print (' print(' . Exit Program') print('1. Addition') print('2. Subtraction') print('3. Multiplication') print('4. Division') print('5. Exponentiation') print('6. Logarithm') print('7. Display Average') Hprompt user to select option from the menu print('InEnter Menu Selection:', end=" ") 1=foat(1 nput ()) \#if statement to determine condition for error message if ( i 7) : (ou,:suotze2n2eotojequnN,)utad(wns,:suotzeznozeotowns,)quTjud:

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 And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions