Remark: Do not copy following code (tabs, spaces are mixed). Type the main function and fill...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Remark: Do not copy following code (tabs, spaces are mixed). Type the main function and fill the missing code. def main(): acct= # you bought a phone with $200, add the transaction properly. #you spend $100 on a restaurant, add the transaction properly. # you have just bought an ipad with the card for $300. Add the transaction properly. #you added 10 gallons of gasoline @$2.88 per gallon. Add it the transaction properly. print ("Balance" ) print ( print ("Points earned from restaurants: ") print ( print ("Points earned from gas stations: ") print ( print ("Points from others: ") print ( print("Total Points: ") print ( main () _) # Print the balance Remark: Do not copy following code (tabs, spaces are mixed). Type the main function and fill the missing code. def main(): acct= # you bought a phone with $200, add the transaction properly. #you spend $100 on a restaurant, add the transaction properly. # you have just bought an ipad with the card for $300. Add the transaction properly. #you added 10 gallons of gasoline @$2.88 per gallon. Add it the transaction properly. print ("Balance" ) print ( print ("Points earned from restaurants: ") print ( print ("Points earned from gas stations: ") print ( print ("Points from others: ") print ( print("Total Points: ") print ( main () _) # Print the balance
Expert Answer:
Answer rating: 100% (QA)
def main balance 0 initial balance Transaction 1 Bought a phone for 200 balanc... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Problem 1 Waltermart Company kept very limited records. on January 1, 2019. Waltermart Company started business and issued share capital, 60,000 shares with P 100 par, for the following...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Vern Westby inherited a ticket from Anna Sjoblom, a survivor of the sinking of the Titanic, which had been pinned to the inside of her coat. He also inherited an album of postcards, some of which...
-
Which of the following statements are true of long-term investments? a. They are held as an investment of cash available for current operations. b. They can include funds earmarked for a special...
-
What is an estoppel? Why is it used?
-
The Carley Company differs from the Marple Company (described in Problem 4-21) in only one respect: it has both variable and fixed manufacturing costs. Its variable costs are $0.14 per litre and its...
-
Counter Co. produces Formica countertops in two sequential production departments: Forming and Polishing. The Polishing Department calculated the following costs per equivalent unit (square feet) on...
-
Two friends take a 2000-mile cross-country trip together, but they drive their own cars. Car A has a 14-gallon gas tank and averages 40 miles per gallon, while car B has a 22-gallon gas tank an...
-
This is the code followed by the questions :) // Execute in strict mode to prevent some common mistakes "use strict"; /** * Make diary data item * @param type Type of item to create, either "text" or...
-
A body initially at rest is accelerated at a constant rate for 5.0 seconds in the positive x direction. If the final speed of the body is 20.0m/s, what is the body's acceleration?
-
Solve for x: -2(1-3x)+3x=5
-
What is Vertical integration strategy and its current and potential benefits for creating shared value?
-
Chris is the the principal Licensee at City Real Estate. He has built the agency over the last six years and he has established a strong client base and reputation within the local region. He has...
-
3. What is the future worth of $1,000 in month 1, $1,040 in month 2, and amounts increasing by $40 per month through month 12, at the end of year 2 if the interest rate is 23.7631528% per year,...
-
The Turners have purchased a house for $130,000. They made an initial down payment of $40,000 and secured a mortgage with interest charged at the rate of 5.5%/year on the unpaid balance. (Interest...
-
A discussion of the cultural changes that have affected the evolution of child custody in the United States, making sure to explain how specific societal changes influenced legal custodial...
-
What is a content filter? Where is it placed in the network to gain the best result for the organization?
-
Teresa is a civil engineer who uses her automobile for business. Teresa drove her automobile a total of 21,732 miles during 2012, of which 95 percent was business mileage. The actual cost of...
-
Mike purchases a heavy-duty truck (5-year class recovery property) for his delivery service on April 30, 2012. The truck is not considered a passenger automobile for purposes of the listed property...
-
Ann hires a nanny to watch her two children while she works at a local hospital. She pays the 19-year-old nanny $125 per week for 48 weeks during the current year. a. What is the employer's portion...
-
What does the term operational gearing refer to and why is this important?
-
From the data and your answers from question 5, sketch two graphs showing the following against level of activity: (i) variable cost; and (ii) fixed cost. Clearly label each line on your graphs.
-
White Weddings has to decide whether to accept a contract to run a wedding. They want to make 2,000 profit and the fixed costs are 4,000. The contribution per guest (sale) after variable costs is 25....
Study smarter with the SolutionInn App