Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For each of the following 4 problems provide: inputs outputs error conditions an

ID: 3749541 • Letter: F

Question

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.

Explanation / Answer

1. Pseudo code :

2 . Pseudo code :

3. Pseudo code :

Then SET ES to “UE”

        Else if ES is State Employee

Then SET ES to “SE”

         Else

       Set ES to “NE”

Else if ES equals to SE then set FEE=(CF+10/100*CC)

Else set FEE=CF+CC

FEE=FEE+3/100*FEE

Else

FEE

       I .   Write FEE

4. Pseudo code :

Read no of giraffes in zoo(i) i.e. NG

Read no of lions in zoo(i) i.e. NL

Read no of giraffes in snakes (i) i.e. NS

Set TNG=TNG+NG

Set TNL=TNL+NL

Set TNS=TNS+NS

End loop

4. Write TNG , TNL,TNS

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote