Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each of the following 4 problems provide: inputs outputs error conditions an algorithm using pseudocode the minimum and the maximum number of operations a

For each of the following 4 problems provide:

inputs

outputs

error conditions

an algorithm using pseudocode

the minimum and the maximum number of operations

a set of test cases

1. Multiplication

Compute and display the result of how much a certain number of pounds of apple costs.

2. Gas

Compute and display the price a person will pay for gas at the gas station. If the person pays with a credit card, there is an extra charge of 10% of the total price.

3. University tuition

Compute the tuition a student pays at an university, given the following rules:

Every student pays a campus fee of $6.87

Each one credit costs $20

An university employee pays only campus fee

State employee pays campus fee + 10% of total number of credits cost

Assume a student cannot be an university employee and a state employee at the same time

A student paying in installments pays an additional 3% of total amount owed

4. Zoo census

There are a number of zoos in the United States. Each of these zoos is a home to giraffes, lions and snakes. Determine and display the total number of each (giraffes, lions, and snakes) in the zoos in the United States. Assume positive values.

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

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

How will Industry 4.0 disrupt conventional HRM?

Answered: 1 week ago

Question

7. Explain why retirees may be valuable as part-time employees.

Answered: 1 week ago

Question

3. Provide advice on how to help a plateaued employee.

Answered: 1 week ago