Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program 1 . Write a program in python that creates a calculator. create a function menu with different options as following: ( Output sample is

Program1.
Write a program in python that creates a calculator.
create a function menu with different options as following: (Output sample is below)
main menu, and prompts for a choice
Welcome to calculator.py
your options are:
1) Addition
2) Subtraction
3) Multiplication
4) Division
5) Quit calculator.py
Choose your option:
When users choose the options 1-4, the appropriate functions will be called to do addition, subtraction, Multiplication, and Division or quit the program.
Program2.
Write a program to declare two empty lists one is for name and one for salaries. Within the for loop ask for employees name and their salaries and append them into the list accordingly. Find out the total salary using the accumulation concept but you need to call a function called EvaluateSalary() within the for loop passing the argument salary for each iteration.
Output : Both of the lists with their items and the total salary.

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions