Python problem using a while loop (not a for loop)
Do not have to graph it, dont worry about it, as long as its short and uses a while loop.
Using the python 3.8 shell.
The given code is mostly self-explanatory it does not use a for loop
init_month = 1000
state_tax = 0.05
fredral_tax = 0.025
month = 1
this_month_sales = init_month
this_month_sales_tax = this_month_sales * state_tax
this_month_fredral_tax = this_month_sales * fredral_tax
while month <=12:
print('Sales for month '+str(month)+' is
'+str("{:.2f}".format(this_month_sales))+' with state tax being
'+str("{:.2f}".format(this_month_sales_tax))+' and fredral tax is
'+str("{:.2f}".format(this_month_fredral_tax)))
if month is not 5:
this_month_sales += this_month_sales * 0.1
this_month_sales_tax = this_month_sales * state_tax
this_month_fredral_tax = this_month_sales * fredral_tax
else:
this_month_sales += this_month_sales * 0.07
this_month_sales_tax = this_month_sales * state_tax
this_month_fredral_tax = this_month_sales * fredral_tax
month += 1
output:

Python problem using a while loop (not a for loop) TASK 2: A retail company must...
in PYTHON -should look like attached PHOTO
-A retail company must file a monthly sales tax report listing
the total sales for the month and the amount of state and federal
sales tax collected.
-The Company made $1000 in sales in month 1.
-Sales increased by 10% from the previous month each month for
6 months except in month 5 where it increased only 7%. (i.e. From
month 5 to month 6 there was only a 7% increase)
-State tax...
Help with a Python programming
problem, i got the first problem correct but cant seem to get this
one.
TASK 2: A retail company must file a monthly
sales tax report listing the total sales for the month and the
amount of state and federal sales tax collected.
The Company made $1000 in sales in month 1.
Sales increased by 10% from the previous month each month for 6
months except in month 5 where it increased only 7%.
(i.e....
Please do this in Python 3
DESCRIPTION Using For.. loop, Write a program to fetch the name, salary and the state of 5 employees. Calculate the federal tax, state tax and the net salary for each employee. Use the following criteria: To calculate the federal tax, use the following criteria: If the salary is greater than 100.000 then calculate the federal tax at 20 percent Otherwise calculate the federal tax at 15%. To calculate the state Tax, use the following...
Python 3 please and thank you
Task 3: Create a Function 7 Create the function TotalRewardPoints which accepts the dictionary that you created in Task 1 and a list of ticket purchases and displays the information as shown below. Ticket Purchase List is formatted as [Number of Tickets, Type of Ticket....] The total reward points a user gets is calculated by using the following formula: Reward Points = Number of Ticket Bought x Reward Points for that Ticket Type Your...
Property Tax Program -Must use C programming
I attempted this program but couldn't figure what I did wrong
;(
Property Tax Program Complete the following program: A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is (4 percent and the county sales tax rate is 2 percent. Write a program that asks the user to enter the...
PLEASE USE WHILE LOOP (NOT FOR LOOPS). Python programming. In this problem, you should write one function named multiply. This function should accept one parameter, which you can assume will be a list with one or more integers in it. (If you don’t know what I mean when I say “list of integers”, go do the reading!) The function should loop through all of the numbers in the list, and multiply all of the numbers together. It should return the...
Complete task using python code
From definitions file:
month = ‘February’
year = 1200
Problem 2: Leap Years (2 Points) Your task is to write a program that takes in both a month and year (defined in the definitions file) and outputs the number of days for that month. It should take into account whether the year is a leap year or not. The resulting number of days in a given month/year combo is to be assigned to the variable...
I want this using while loop
This using stringin python
Use list or some thing in python
Using list in python
I want answer as soon as posdible
E. Last Number time limit per test: 1 second memory limit per test: 256 megabytes input standard input output standard output You are given a sequence of positive integers aj, , 03, ... Print the last element of the sequence. Input The input consists of multiple lines. The i-th line contains a...
Using C++ 1. Create a while loop that counts even numbers from 2 to 10 2. Create a for loop that counts by five (i.e. 0, 5, 10, ...) from 0 to 100 3. Ask for a person's age and give them three tries to give you a correct age (between 0 and 100) 4. Use a for loop to list Celsius and Fahrenheit temperatures. The "C" should be from -20 to 20 and the F should be shown correspondingly...
the task is to prepare the patrol using the
information provided in the images
prepare the payroll
3. The bookkeeper of Coast Co. gathered the following data from individual employee earnings records and daily time cards. Your task is to complete a payroll register on November 17. Cumulative Earning Daily Time before This Payroll M T W Hourly Rate of Pay T F FIT Allowance and Employee Marital Status Ryan, Pam M-1 Babu, Don S-O Dean, Ria M-3 Gray, Jane...