Program that ask user to enter insurance company name

Assignment Help Computer Engineering
Reference no: EM131174931

Task-

An insurance company wants to get a rough estimate of their annual car insurance income. The company has three types of car insurance as: basic, intermediate and comprehensive. Write a program that will ask the user to enter the insurance company name, year, the number of insurance policies sold of each car insurance type. The average insurance premiums of each car insurance policy type are $500, $650 and $800. The above prices include a 10% Goods and Services Tax (GST). Finally, the program should display the amount of annual earned for each car insurance type (excluding the GST) and the total amount of money earned for all the three car insurance types. Then, the program should prompt the user with the message "Do you wish to repeat for another year? [Y/N]: ". If the user selects 'Y' or 'y' the program should repeat. If the user selects 'N' or 'n' the program should terminate and print 'Thank You! ------ See You Again!'

Notes: you are expected to use selection, repletion and functions in this program.

Write an algorithm in structured English (pseudocode) that describes the steps required to perform the task specified. You may specify the algorithm for the functions separately and refer to the function name in the algorithm for the main program. Your program design should include constants, selections, repletion and multiple functions.

Specify 3 sets of test data that will demonstrate the correct 'normal' operation of your program. Select another 2 sets of test data that will demonstrate the 'abnormal' operation of your program. Set these out in the same format as in Assignment.

Implement your algorithm in Python.

Use separate functions to perform the task, instead of having only one single main function.

The 'main' function should prompt for user input and then call other function/s that calculates the income generated. Make sure your program has both a 'main' function and at least one other function that is called from the 'main' function to calculate the income. Remember to call the 'main' function at the bottom of your program or it will not execute.

Use triple quoted 'docstrings' to document your function, and add other 'end of line' comments as necessary to explain your code.

Run your program using the test data you have selected and save the output it produces in a text file.

Submit:

1. Your algorithm.

2. The table recording your chosen test data.

3. Source code for your Python implementation.

4. Output listings demonstrating the results of using the test data.

It is important that the output listings are not edited in any way.

Rationale

Reinforce topic material on simple functions.

Reinforce topic material on decision structures and Boolean logic.

Python Based assignment, please use Python v3.3.2.

Reference no: EM131174931

Questions Cloud

Compute the energy loss over a length of 1.80 m : Then, compute the energy loss over a length of 1.80 m. Assume that the surface roughness is similar to that of commercial steel pipe.
What are the break-even stock prices at expiration : Generous Dynamics stock currently sells for 73.0 dollars per share. Consider the following portfolio of options on Generous Dynamics stock: -- short one call option with strike price 72.0 and price 7.2615 -- short two put options with a strike price ..
Projects based on the profitability index : You are considering two mutually exclusive projects. Project A has cash flows of -$74,900, $18,400, $26,300, and $57,100 for years 0 to 3, respectively. Project B has cash flows of -$79,000, $18,400, $22,700, and $51,500 for years 0 to 3, respectivel..
What are the costs and benefits of the policy : What are the costs and benefits of the policy? What are the risks of enacting or not enacting the policy? How will the lives of people who are affected by the health issue change if this policy is enacted?
Program that ask user to enter insurance company name : Write a program that will ask the user to enter the insurance company name, year, the number of insurance policies sold of each car insurance type. The average insurance premiums of each car insurance policy type are $500, $650 and $800
What is the minimum value of this bond : A convertible bond has a 6.5 percent coupon, paid semiannually, and will mature in 10 years. If the bond were not convertible, it would be priced to yield 5.5 percent. The conversion ratio on the bond is 25 and the stock is currently selling for $51 ..
How much gain or loss resulted from the sale : A person owned 300 shares of MNO common stock, which cost $23,400.- How much gain (or loss) resulted from the sale?
Identify transition points or conflicts in your gender role : Describe your experiences with sexism or lack of experiences with sexism. How does this relate to what the scientific community says about transitions, conflicts, and challenges?
Whether firm raises financing as equity or debt : The M&M theory states it does not make any difference from an economist’s view whether a firm raises financing as equity or debt. However floatation costs are more for equity than debt and interest on debt is tax deductible whereas dividends are not.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Give most popular ways today to code a database application

Embedded SQL applications tend to lack interoperatiliby. Applications might have to modified to work with other RDBMS ODBC applications do not need the explicit declaration and use of host variables.

  Design a to perform various matrix operations

Design a to perform various matrix operations. class A matrix is a set of numbers arranged in rows and columns. Therefore, every element of a matrix has a row position and a column position.

  Question1 how many hops are there from one node to another

question1 how many hops are there from one node to another? make up a detailed board.2 what are all of ip addresses?

  Ethernet mac address

Specify the size of Ethernet MAC addresses. State the Ethernet MAC broadcast address. Explain the format of the Ethernet frame?

  Writenbspa 700- to 1050-word paper discussing managerial

writenbspa 700- to 1050-word paper discussing managerial issues associated with managing an organizations is

  Give differences between human centered and user centered

What are the differences between "human centered" and "user centered" approaches? Do you agree that human centered approach is more effective? Why or why not?

  Choose the employee''s last name

Group employees by salary within their job code: choose the employee's last name and group them by salary within their job_title_code.

  Make a use of normalizing and data integrity methodologies

Consider a typical job order that might include the following information. make a single table to hold all the information required to store a job order including this information. Next, apply normalization to reduce this table to third normal for..

  Describe the kinds of questions mcgraw-hill might have

analysisdescribe the kinds of questions mcgraw-hill might have asked as part of determining the feasibility of the

  Companies still fail in their use of information technology

Why do big companies still fail in their use of information technology? What should they be doing differently.

  Create the context dfd

Create the Context DFD, create the System DFD and give a 5-minute presentation on your team's solution

  Define the three way tcp/ip handshake in connection setup

Come up with a diagram and explain the three way TCP/IP handshake in connection setup and the 3 way TCP/IP handshake in connection release.

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