Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Management Information System Expert

Respectfully, Please see the structure for the program I'm trying to write using Python.

Below is how the program should be structured.

1. Program general structure: Function definitions should be at the top of the program Create a dictionary that will be used to store customer information Have an infinite while loop:

1. Within the while loop, user should be prompted for the service information: Name, Income, consulting time -- If the user does not enter a value exit the loop

2. Pass the service information to the generateRecord Function

3. Within the generateRecord function

a. Generate the customer id and store it in a variable

b. Call the generateBillAmount Function

1. Pass the income and consulting time

2. Based on the income, determine billing and return bill amount

c. Store the billing amount returned by generateBillAmount into a variable

d. Store the customer information into a tuple: name, income, consulting time, billingAmount

e. Add the customer id and record into the dictionary -- key/value pair Once the loop exits, print the contents of the dictionary

Please see the actual problem below:

2. 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:

a. 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.

b. 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

Management Information System, Management Studies

  • Category:- Management Information System
  • Reference No.:- M93111922

Have any Question?


Related Questions in Management Information System

Assignment application perform data gathering and

Assignment Application: Perform Data Gathering and Footprinting on a Targeted Website You might be wondering how some hackers select their targets. Well, the answer is surprisingly simple-Internet research. The Internet ...

Scenario you as the him director has been asked to give a

Scenario: You, as the HIM Director, has been asked to give a presentation to a group of new directors from other departments to explain Master Data during an informational session. You need to at minimum cover the use an ...

Question suppose dr smart has designed a 4des cipher which

Question : Suppose Dr. Smart has designed a 4DES cipher which encrypts data m in the following way: c= Dk4(Dk3(Ek2(Ek1(m)))), where E and D denote the encryption and decryption operation of DES. To break this cipher and ...

Discussion your task is to compare and contrast the

Discussion : Your task is to compare and contrast the different approaches and techniques that can be used to secure both planes (control plane and the management plane) of a Cisco device. Also answer the question of whe ...

Data resources management questionsq1 the dama dmbok

Data Resources Management QUESTIONS Q1. The DAMA DMBOK textbook describes the following two core activities as part of the Data Architecture management exercise: "Understanding enterprise information needs" and "Develop ...

Questionnbsp - software patterns part 1 - pattern

Question  - Software Patterns Part 1 - Pattern Selection For the small case study provided, decide on an appropriate pattern or of patterns to support the requirements of that case study, and explain those decisions. Par ...

Management of itexercise - providing it assurance

Management of IT Exercise - Providing IT Assurance Policies: • Submissions made through a means other than the GeorgiaView (D2L) Dropbox will be ignored and earn a 0. • Submissions without your name stated above earn a 0 ...

Topic we all had the unfortunate experience of seeing how

Topic: We all had the unfortunate experience of seeing how computers can, at times, make life's journey abit more difficult. This is especially true in knowledge centric workplaces. Describe an example of a very poorly i ...

Respectfully please see the structure for the program im

Respectfully, Please see the structure for the program I'm trying to write using Python. Below is how the program should be structured. 1. Program general structure: Function definitions should be at the top of the progr ...

Designing team and team identitypart 1 think about how to

Designing Team and Team Identity Part 1: Think about how to build teams in terms of designing the task, selecting the people, and then, managing their relationships. How would compose a team for completing a course/work ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As