Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON Program1 ( 1 point): Write a program to create a simple calculator and perform basic arithmetic operations like sum, product, difference & division. It
PYTHON
Program1 ( 1 point): Write a program to create a simple calculator and perform basic arithmetic operations like sum, product, difference & division. It asks the user to enter two numbers and then displays a menu to select an operation. For example, "Press 1 for sum, 2 for subtraction, 3 for multiplication, 4 for division" Evamnla Program2(1 point): Write a program to find the factorial of a given interger. Enter 6 to find the answer. Program3 (1 points): Write a program that converts all words of a string/sentence to upper case and store all these words in a list and then displays the list. For example: if the string is "Hi how are you", then the list should be: ['HI', 'HOW', 'ARE', 'YOU'] Program 4(1 points): Write a program to count the number of a vowels in a given string element in a list. For example, count the number of vowels in string1="abdnedoxydi" Program5 (1.5 points): Write a program to calculate income tax based on the annual income. This program asks the user to input his/her annual income. The user is asked to enter income again if he enters income less than 0 . Calculate and display the income tax (round off to two decimals) based on the following income tax rate. Program8(1.5 points): Write a program to calculate the total price based on items bought by the customer. This program asks the customer to enter the number of items bought and then display the total price after the discount. This program displays the total price(round off to two decimals) after the discount. The customer is asked to enter the number of items again if he enters a value less than 0. Define a function totalerice() that takes the number of items as an argument and calculates the total price after discount. The unit price of an item is 10.768S. Discount is based on the number of items bought. - No discount if the number of items bought is 20 or less - 10% discount when the number of items bought is between 21 and 50 - 20% discount when the number of items bought is between 51 and 100 - 25% discount when the number of items bought more than 100 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started