In Python, Create a program that will calculate how much money you will save. Your program needs to ask the user how many months they wish to save for, how many weeks during a month they wish to save and how much money they are willing to save with each weekly paycheck. It will then total the amount saved for each month and in total.
Your input statement needs to look like the following:
How many months are you saving for:
How many weeks are you saving this month:
Enter the amount of savings this week: $
SavingCalculator.py
# getting number of months from user
months = int(input("How many months are you saving for: "));
# getting number of weeks of month
weeks = int(input("How many weeks are you saving this month:
"));
# getting amount to save for each week
amount = float(input("Enter the amount of savings this week:
$"));
# calculate and display amount saved for each month
monthTotal=weeks*amount
print("\nTotal amount saved for each month: $",monthTotal)
# calculate and display total amount savedfor all months
total=months*monthTotal
print("Total amount saved: $",total)
Sample Run 1
Sample Run 2
In Python, Create a program that will calculate how much money you will save. Your program...
1 Problem You have graduated and have a great job! You move to Ottawa and decide that you want to start saving to buy a house. As housing prices are very high in the Ottawa, you realize you are going to have to save for several years before you can afford to make the down payment on a house.You are going to determine how long it will take you to save enough money to make the down payment given the...
Create a new Python program in IDLE, and save it as lab8.py.(Again, I recommend saving lab progranms Your Python program will do the following: Create an empty list . Use a for loop to ask the user for 10 numbers. Add each number to your list using the append metha . Use another for loop to print the list in reverse order, one per line . Use a while loop to count how many positive numbers are in the list...
Visual C# C# Visual Studio 2017 You are to create a class object called “Employee” which included eight private variables - firstN - lastN - idNum -wage: holds how much the person makes per hour -weekHrsWkd: holds how many total hours the person worked each week. - regHrsAmt: initialize to a fixed amount of 40 using constructor. - regPay - otPay After going over the regular hours, the employee gets 1.5x the wage for each additional hour worked. Methods: -...
python - Write a program that asks the user to enter how much their dinner bill was. Then ask them how many people were in their party. If there were more than 6 people in their party automatically calculate a 20% tip. If there were 6 or less people in their party ask them what percentage they would like to tip. In all cases, print out the total amount of the tip at the end of the program.
Use python and use if, elif and else statements. Thank you! The program should first ask the user if they are a hero or a villain. If they enter “villain”, the program should ask them their name; if they enter “hero”, it should ask how many people they have saved, and respond to that information. Using decision structures, have your program execute certain print statements following these rules: If they enter that they are a villain Ask for their name...
48. It’s Friday, and you decide to save your change from your pockets each day for the coming week and, take the amount each Friday to save in the bank. If you save $20 a week for 10 years at 6 percent interest? Assume the first payment occurs at the end of the first week and that there are exactly 52 weeks in a year, how much will you have saved in 10 years? 49. The Hippie Food Store is...
Create a Python program that asks the user how many miles they think they may run. The program should also ask them how much they weight. The program should then use a loop to calculate and print the number of calories burnt while running each mile. o Assume that a person burns 1 calorie per pound during each mile of running
Once again we will create a program that tells us how many months we need to save to reach a goal. This time however, using recursive functions. The guidelines are the following: In main, ask the user for the initial amount, the goal and the “monthly amount” (the constant amount of money that will be put aside every month). Once you have these values you should call your function. Your function should not return anything and it should...
. Programing Just with #include <stdio.h> Once again we will create a program that tells us how many months we need to save to reach a goal. This time however, using recursive functions. The guidelines are the following: In main, ask the user for the initial amount, the goal and the “monthly amount" (the constant amount of money that will be put aside every month). Once you have these values you should call your function. Your function should not return...
Show Me The Money. (15 points) Write a C++ program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day, four pennies the third day, and so on, with the daily pay doubling each day the employee works. The program should ask the user for the number of days the employee worked during the month and should display a table showing how much the salary was...