Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

An amusement park offers group entry fees as follows: $39.95 per person for groups of fewer than 15 people, $34.95 per person for groups from

An amusement park offers group entry fees as follows: $39.95 per person for groups of fewer than 15 people, $34.95 per person for groups from 15 to 25 people inclusive, $29.95 per person for groups from 26 to 35 people inclusive, and $24.95 per person for groups over 35 people. Sales tax is charged on all sales at 5%. Write pseudocode as follows:

a. Declare all variables and constants needed needed for this program.

b. Allow the user to enter the size of the group as input into the variable you have declared for that purpose. Using this and the constants that you declared , write an if statement and other code that determines the fee to be charged for the entire group, including the sales tax. Your if statement must work as efficiently as possible and must not include any unnecessary tests, nor must there be any repetition of identical lines of the code in several places.

c. Output a bill containing all details of the sale- the size of the group, the fee per person, the total fee before sales tax, the tax itself, and the total after tax.

This is for a intro to computer logic class CIT 120 so I guess the most basic code please

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions

Question

1. Where do these biases come from?

Answered: 1 week ago

Question

7. What decisions would you make as the city manager?

Answered: 1 week ago