Computers and Technology

The Harrison Group Life Insurance company computes annual policy premiums based on the age the customer turns in the current calendar year. The premium is computed depending on the users age. If the user is under the age of 50 – it is calculated by taking the decade of the customer’s age, adding 15 to it, and multiplying by 20. For example, a 34-year-old would pay $360, which is calculated by adding the decades (3) to 15, and then multiplying by 20.
If the user is over 50 – it is calculated by taking the decade of the customer’s age, adding 20 to it, and multiplying by 25. For example, a 54-year-old would pay $625, which is calculated by adding the decades (5) to 20, and then multiplying by 25.
Write an application that:

Declares the variables needed.
Prompts a user for their decade age (be clear in the instructions that you want only the 10s or 100s place).
Hits an IF statement that will call on a method named calculaterate and will pass it the decade, the addition number and the multiplier based on that IF statement.
The method should calculate the premium and return it to the main method.
The main will then display it out to the user.
The user will then be asked if they want to enter in another number. (While or Do While – your Choice) in persudo code please

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:00, bankscorneliuso39
Fast sportcars the top speeds of sportscars, given in miles per hour, are: 155 mph bmw m5 217 mph lamborghini aventador spyder 205 mph ferrari 488 205 mph nissan gtr 197 mph chevrolet corvette stingray zr1 258 mph bugatti veyron supersport 195 mph dodge viper 270 mph hennessey venom 155 mph bmw m3 195 mph mercedes sl given: topspeeds=[155; 217; 205; 205; 197; 258; 195; 270; 155; 195]; carnames=string(["bmw m5" "lamborghini aventador spyder" "ferrari 488" "nissan gtr" "chevrolet corvette stingray zr1" "bugatti veyron supersport" "dodge viper" "hennessey venom" "bmw m3" "mercedes sl"]); the variable is a rectangular array. write a function called selectcars to identify cars with the top speed within a given range, and display the identified names. the selected cars speed will be in a range given by lowerbound < speed < upperbound. inputs to the function selectcars are: a column array os all car top speeds named topspeeds, the corresponding chara
Answers: 2
image
Computers and Technology, 22.06.2019 21:30, aesthetickait
How do you take a green screen out of the video while editing?
Answers: 2
image
Computers and Technology, 23.06.2019 06:00, ashleyd198308
Respond to the following in three to five sentences. select the workplace skill, habit, or attitude described in this chapter that you believe is most important for being a successful employee.
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, paulusl19
The first screen you see when you open word2016 what is called?
Answers: 1
Do you know the correct answer?
The Harrison Group Life Insurance company computes annual policy premiums based on the age the custo...

Questions in other subjects: