Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this in a pseudocode heres an example of what pseudocode i need. start Declarations string customerName string serviceType num feeForService num calculateParkingFee num

I need this in a pseudocode

heres an example of what pseudocode i need.

start

Declarations

string customerName

string serviceType

num feeForService

num calculateParkingFee

num calculateShuttleFee

output Welcome to the airports service calculator

output This program will help you calculate you fee,

depending on what service you would you need.

output Enter your name

input customerName

output What service will you be using today?

input seriviceType

if (serviceType = parking) then

fee= calculateParkingFee()

else

fee= calculateShuttleFee()

endif

output The total fee for, customerName, for service, ,

serviceType, , is $, fee

stop

num calculateParkingFee()

Declarations

string frequentParkerProgramMember

num numOfDaysParking

num finalFee

output Are you a frequent parking program member?,

Y or N

input frequentParkerProgramMember

output How many days will you be parked here?

input numOfDaysParking

fee = 12 * numOfDaysParking

if (frequentParkerProgramMember = Y) then

finalFee = fee (fee * (10/100))

return finalFee

else

return fee

endif

return

num calculateShuttleFee()

Declarations

num numberOfPassengers

num numberOfBags

num finalFee

output How many passengers?

input numberOfPassengers

output How many bags will each passenger have?

input numberOfBags

fee = 29 + (numberOfBags 1)*2

if numberOfPassengers >=2 then

finalFee = fee * numberOfPassengers

return finalFee

else

return fee

endif

return

Our colleges Workforce Solutions department offers non-credit classes in various areas of interest in the community, as shown below, along with their fees. Class Number Class Name Fee

1 Acrylic Painting for Beginners $79.00

2 Advanced Photography $115.00

3 Basic Photography $115.00

4 Blues and Boogie Woogie Piano $85.00

5 Public Speaking and Speech Giving $99.00

6 Sign Language Level I $49.00

Assume that the following declarations have already been made

num totalEnrollment

num averageEnrollment

num highestEnrollment

num lowestEnrollment

num indexOfHighest

num indexOfLowest

num classNumber

num desiredClassNumber

a) Declare any required variables and constants, and arrays for the class names, the fees and the enrollment count for each class. The table above shows only the current group of classes that have been scheduled. The program must be capable of being modified to accommodate more or fewer classes later by editing only one line of code.

b) Assume that the class name and fee arrays have been filled. You do not have to write code to fill them.

c) The program should continuously accept a class number and then display the classs name, until the user enters an appropriate sentinel value to stop entering input. Each time the user enters a valid class number, the program asks the user if he/she wants to sign up for the class, and if they do, simply updates the count of people who have signed up for the class.

d) Once the user decides to stop, the program should display

i) each class number, name and fee Page 2 of 3

ii) a count of the number of people signed up for each class

iii) the total number of people signed up for classes

iv) the average class enrollment

v) the names of the highest enrolling class and the lowest enrolling class this should be done without any sorting 2

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

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions

Question

How do books become world of wonder?

Answered: 1 week ago

Question

If ( A^2 - A + I = 0 ), then inverse of matrix ( A ) is?

Answered: 1 week ago