Need help coding this python problem
bills_rate = 100.0
johns_rate = 1000.0
kates_rate = 0.01
number_of_days = int(input("Enter the number of days: "))
bills_pay = 0.0
johns_pay = 1000.0
kates_pay = 0.01
#print(number_of_days)
bills_pay = bills_rate * number_of_days
for i in range(1,number_of_days) :
johns_pay += johns_rate
johns_rate /= 2
#print(johns_pay)
kates_pay += kates_rate
kates_rate *= 2
#print(kates_pay)
if (bills_pay > johns_pay) and (bills_pay > kates_pay)
:
print("Bill")
elif (johns_pay > kates_pay) :
print("John")
else :
print("Kate")
#print("Bill: %d, John: %d, Kate: %d" %(bills_pay,johns_pay,kates_pay))
Need help coding this python problem You have three friends who want to rent a room...
Kate would like you to answer the following questions: 1. What are the advantages and disadvantages of offering credit? 2. What precautions should she take before offering credit to people like John? 3. If Kate grants credit to John, the terms will be 2/10, 1/30. Assuming the payment is made during the 10-day discount period, what would be the journal entry to record the sale and then the subsequent payment? 4. If instead of paying early, John pays in 25...
Help with this coding problem. Please in python Thank you You are choreograhing a circus show with various animals. For one act, you are given two kangaroos on a number line ready to jump in the positive direction (i.e, toward positive infinity). The first kangaroo starts at location x1 and moves at a rate of v1 meters per jump. The second kangaroo starts at location x2 and moves at a rate of v2 meters per jump. You have to figure...
I am having trouble on the first chart for section b and then on the second chart I have having issues with the whole thing. Below is the data on what I need to do.Arnez Company’s annual accounting period ends on December 31, 2019. The following information concerns the adjusting entries to be recorded as of that date.The Office Supplies account started the year with a $4,100 balance. During 2019, the company purchased supplies for $16,933, which was added to...
Chapter 8 Accounting for Receivables BIAL PROBLEM: KATE'S CARE SERIAL PRO This is a continuation of the serial Problem: Kate's Cards from Chapters 1 through 7.) (Note: This is a continuatio SP8. Kat Kate has put a lot of time and effort into stre and entort into streamlining the process to design and produce a greet- ing card. She has documented the entire process in a QuickTime video she produced on her iMac. The video takes the viewer through the...
Case Overview:
You are an intelligent ten-year-old child who wants to start a
lemonade stand. You live in Duluth, Minnesota in a middle class
neighborhood, with all of the benefits and constraints of a typical
child of that age. As a start, you have outlined three possible
business plans:
Fresh Squeezed Plan:
Your mother has agreed to loan you $5 to get your fresh squeezed
lemonade stand started and she will let you use her lemon squeezer
at no charge,...
I am stuck with this coding problem from edx coding python 4.4.6: #This is a long one -- our answer is 20 lines of code, but #yours will probably be longer. That's because it's one of the #more authentic problems we've done so far. This is a real #problem you'll start to face if you want to start creating #useful programs. # #One of the reasons that filetypes work is that everyone #agrees how they are structured. A ".png" file,...
I Need Help with this using Java Programming
:
Class name
fname
lname
Class variable
total Number
Constructor (no arguments)
Constructor (takes two arguments, fname and lname)
One getter method to return the fname and lname
One setter method for fname and lname
Inside Main:
Create three objects with the following
names
Jill Doe
John James
Jack Smith
When creating the first object (Should
not be an anonymous object)
use the argument-less constructor
Then use the setter method to assign...
I need to get this two last parts of my project done by tonight. If you see something wrong with the current code feel free to fix it. Thank you! Project 3 Description In this project, use project 1 and 2 as a starting point and complete the following tasks. Create a C++ project for a daycare. In this project, create a class called child which is defined as follows: private members: string First name string Last name integer Child...
Leon Landlord owned a duplex in the state of Navasota, which follows the majority common law rules on matters of landlord and tenant law. Leon resided in one unit of the duplex and rented the other unit in the duplex to Teresa Tenant. Leon told Teresa, "you pay me $5,700 for a six month lease. Rent is $950 a month due on the first day of each month. After that, we can agree to go month-to-month." Teresa agreed to these...
I need help in Python. This is a two step problem So I have the code down, but I am missing some requirements that I am stuck on. Also, I need help verifying the problem is correct.:) 7. Random Number File Writer Write a program that writes a series of random numbers to a file. Each random number should be in the range of 1 through 500. The application should let the user specify how many random numbers the file...