Write a program that displays the total income for 3 weeks of pay. Have the user input each week’s salary. Display the total income. IN PYTHON please explain each step with comments
Algorithm
PseudoCode
Sourcecode
Dear Student ,
As per the requirement submitted above , kindly find the below solution.
Here a new python program with name "Main.py" is created, which contains following code.
Main.py :
#Python program to display the total income for 3 weeks of
pay
#declaring variable to store week number
weekno=1
#declaring variable to store total pay
totalPay=0
for i in range(3):
#asking user to enter pay
pay=int(input("Enter "+str(weekno)+" week’s salary : "))
#adding salary in totalPay
totalPay=totalPay+pay
#increment weekno
weekno=weekno+1
#display total income for 3 weeks
print("Total Income for 3 weeks : ",totalPay)
Screen for Indentation :

======================================================
Output : Compile and Run above program to get the screen as shown below
Screen 1 :Screen asking each weeks salary

Screen 2 :Screen showing total pay for three weeks

NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.
Write a program that displays the total income for 3 weeks of pay. Have the user...
Write a Python program that reads from the user 4 item prices then displays the total and average price. The program should also display the taxes ( using the TAX_RATE=8.75) and the total after tax.
Total Sales Design a program that asks the user to enter a store’s sales for each day of the week. The amounts should be stored in an array. Use a loop to calculate the total sales for the week and display the result. Need: variable lists, IPO Chart, pseudocode, Flowchart, and working Python code. 2. Lottery Number Generator Design a program that generates a 7-digit lottery number. The program should have an Integer array with 7 elements. Write a loop...
(PYTHON) Write a program that displays the following menu:. , Write Algorithm for Code Geometry Calculator 1. Calculate the Area of a Circle 2. Calculate the Area of a Rectangle 3. Calculate the Area of a Triangle 4. Quit Enter your choice (1 - 4): If the user enters 1, the program should ask for the radius of the circle and then display its area. If the user enters 2, the program should ask for the length and width of...
PYTHON PROGRAM Write an application that accepts a sentence as input from the user and displays all of the words in the sentence that have an odd number of letters in them
Overview Module 3 Assignment 2 features designing a program using pseudocode and then completing the program in Python using strings. M3Lab2 asks you to write a Mortgage Loan Calculator. Each lab asks you to write pseudocode that plans the program’s logic before you write the program in Python and to turn in three things: 1) the pseudocode, 2) a screenshot of the output, and 3) the Python program. Instructions Pseudocode and Python Program with Strings M3Lab2.txt has some of the...
Design the logic for a program that allows a user to enter 10 numbers, then displays all of the numbers, the sum and average of the numbers. (Use array and loop.) the pseudocode in python please
1. Backward String Design a program that prompts the user to enter a string and then displays the string contents backward. For instance, if the user enters “gravity” the program should display “ytivar" -VB or Visual Studio. It must be turned into a GUI program. Make sure to write comments and include pseudocode. -Paste a screenshot of the pseudocode, the VB code, and of the program running into a PDF.
Python: Write a program that lets the user enter a string and displays the letter that appears most frequently in the string, ignore spaces, punctuation, and Upper vs Lower case. Create a list to hold letters based on the length of the user input Convert all letters to the same case Use a loop to check for each letter in the alphabet Have a variable to hold the largest number of times a letter appears, and replace the value when...
I need Pseudocode Algorithm only, please Write a program that asks the user to enter the name of his or her favorite city. use a String variable to store the input. The program should display the following: The number of characters in the city name the name of the city in all uppercase letters the name of the city in all lower case letters the first character in the name of the city
write a python program that allows the user to enter two integer values, and displays the results when each of the following arithmetic operators are applied