A store gives a discount for senior citizens

Assignment Help Basic Computer Science
Reference no: EM13667036

Assume a store gives a discount for senior citizens (55 and older) according to the following criteria.
A 10% discount to senior citizens who are between 55 and 64 years old.
A 15% discount for customers who are between 65 and 75 years old.
A 20% discount for customers more than 75 years old.
Nonseniors pay full price. Write a pseudocode algorithm that will input the purchase amount and the type of customer, and will print the discount rate and the amount of money owed. Use structured pseudocode as demonstrated in the lectures for code, ensure that all variables are declared, prompt the user for the appropriate input, and display a meaningful output message. Make sure that the total purchase is greater than 0 and the age is greater than 0.

Reference no: EM13667036

Questions Cloud

Explain what happens to her angular velocity : If an ice skater spins on perfectly frictionless ice and pulls in her arms, she reduces her moment of inertia by a factor of two and she will then rotate with double the angular velocity. explain what happens to her angular velocity
Determine the velocity of the spaceship : A spaceship is traveling with a velocity of +3250 m/s. Determine the velocity of the spaceship when the displacement of the craft is +215 kilometer
Write a gui class game : Write a GUI class Game that implements a number guessing game.
Find its maximum height and the time taken in getting there : A ball is thrown vertically up with a speed of 30 m/s. Find its maximum height and the time taken in getting there
A store gives a discount for senior citizens : A store gives a discount for senior citizens
Discuss measures that can be to proactively reduce risk : Discuss measures that can be taken to proactively reduce risk.
Describe the available materials and services : Describe the available materials and services
Ray henry is considering expanding the activities : 1. Ray Henry is considering expanding the activities at his book stores to include movies. He has some ideas for how he wants to do this and he needs you to help with database design activities to address these ideas. In particular, he would l..
Currency exchange rates : Currency Exchange Rates

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a conversion program that prompts the user

Write a conversion program that prompts the user from which unit she/he wants to convert (gallon to liters, miles to Km, celsius to fahrenheit) . You should write three different methods.

  Describe method to keep the data local caches in sync across

describe method to keep the data local caches in sync across multiple processors (i.e. cache coherence). discuss implementations issues

  Speculate on the role of the cio in a specific industry

q1. with a focus on enterprise hardware software services and human capital list and describe three advantages of green

  Display the highest score out of the three

For your assignment, write a program that retrieves three scores. Each of the three scores should be from a different player, and you want to display the highest score out of the three. Save your assignment as a .cpp file. Place this .cpp file in ..

  Write a program that reads in two floating-point numbers and

Write a program that reads in two floating-point numbers and tests whether they are the same up to two decimal places. here are two sample runs.

  Advantages of the database approach

What are the advantages of the database approach over the traditional approach to database management? What is a data center, and why are they becoming increasingly important

  Prepare a proposal to deploy windows server onto an existing

Prepare a proposal to deploy Windows Server onto an existing network, based on a provided scenario. The proposal will include deployment, security policy, application and data provisioning, monitoring, and continuity plans. For a more detailed projec..

  Create a program that will store results of your dice game

Create a program that will store the results of your dice game in a comma separated value file (filename.csv). You will use the Formatter API to construct a new file.

  Write a class name payroll

Before asking the user for the hours, the program should set the pay rate for each employee without user input. Validation: Do not accept values greater than 60 for the number of hours worked.

  Write a recursive method definition for a static method

Write a recursive method definition for a static method that has one parameter n of type int and that returns the nth Fibonacci number. F0 is 1, F1 is 1, F2 is 2, F3 is 3, F4 is 5. And in general Fi+2 = Fi + Fi+1 for I = 0,1,2,...

  Create a pogram that uses inheritance

The values you generate should be floating points and allow for decimal points. to perform this task you should generate random numbers between 200 and 1000 and then divide by 100 to generate the decimal points.

  Function in programs to print upside down triangles

Apply function in programs to prints triangles, upside down triangles, and diamond.

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