Write a program that prompts the user to enter the customer

Assignment Help Computer Engineering
Reference no: EM132080122

You need help writing this program in python IDLE 3.5 with the syntex.

During the tax season, every Friday, the J&J accounting firm provides assistance to people who prepare their own tax returns. Their charges are as follows:

If a person has low income (<= 25,000) and the consulting time is less than or equal to 30 minutes, there are no charges; otherwise, the service charges are 40% of the regular hourly rate for the time over 30 minutes.

For others, if the consulting time is less than or equal to 20 minutes, there are no service charges; otherwise, service charges are 70% of the regular hourly rate for the time over 20 minutes.

(For example suppose that a person has low income and spent 1 hour and 15 minutes, and the hourly rate is $70.00. Then the billing amount is 70.00 X 0.40 X (45 / 60) = 21.00).

Write a program that prompts the user to enter the customer first and last name, hourly rate, the total consulting time, and income. Once the customer information is entered, the program should generate and store a record for the customer. The customer record should include a 6-digit customer id (customer id will be generated by the program).

The customer id should be used as a key to retrieve the customer information (first and last name, income, hourly rate, consulting time, income, and billing amount).

Program should use a function, generateRecord, to create and add the customer record to the database (a dict that stores customers' information). generateRecord function takes first and last name, hourly rate, the total consulting time, and income as arguments. The program should calculate the billing amount and append/include it in the customer record.

Your program must contain a function, generateBillAmount that takes as input the hourly rate, the total consulting time, and the customer income.

The generateBillAmount should return the billing amount. The program should use a loop to process multiple customers. To exit the loop, the user should hit enter without entering customer information. Upon exiting the loop, the program should print each customer information. If the database does not contain data, the program should print the following: " No customer to print"

Note: Customer information (first and last name, income, hourly rate, consulting time, income, and billing amount) must be stored in a tuple.

Reference no: EM132080122

Questions Cloud

Push on opposite sides of a door during play : Two children push on opposite sides of a door during play. Both push horizontally and perpendicular to the door.
How much coal has to be burned to light that light bulb : Assuming that the coal power plant is 30% efficient, how much coal has to be burned to light that light bulb for one day?
How would my print statement look like print statement : How would my print statement look like print statement to output float of x,y,z
Assume a frictionless surface : Assume a frictionless surface (so the ball slides without rotating). The acceleration due to gravity is 9.81 m/s2..
Write a program that prompts the user to enter the customer : Write a program that prompts the user to enter the customer first and last name, hourly rate, the total consulting time, and income.
Write a program that will check java file for syntax errors : Write a program that will check Java file for syntax errors. The program will ask for an input-file name and output-file name and will then copy.
Which bucket holds more water : The weight of the rod and empty buckets are negligible compared to the weight of the water. Which bucket holds more water?
Write a function named digit_count that takes one parameter : Write a function named digit_count that takes one parameter that is a number (int or float) and returns a count of even digits, a count of odd digits.
Write r code that implement benjamini-hochberg procedure : Given the data below write R code that implement Benjamini-Hochberg procedure to control false discovery rate without using package.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd