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

Scientific Programming Homework Assignment 1 Program Design Grading: 5 points ea

ID: 3664817 • Letter: S

Question

Scientific Programming

Homework Assignment 1 Program Design   

Grading: 5 points each. partial points may be given if the answer is partially correct.

You have to design (not code) these problems. (see links below for more help)

Show your solution using either pseudocode or a flowchart.

1. At the football stadium there are three seating categories. Class A seats cost $135. type B seats cost $75. and type C seats cost $45.

    Design a program that asks: how many tickets for each type of seat were sold and then displays the amount of income generated from ticket sales. Show the amount for each type of seat and the total amount.

2. Design a program that calculates the average rainfall for three months. design a program that asks the user to input the name of each month and the amount of rain that fell each month and display a message similar to this:

   The average rainfall for February, March and April is 5.23 inches

Explanation / Answer

1.

//pseudo code to find total amount generated from selling tickets in a football stadium of seats from different //category

Step1:Start the pseudocode

Step2:Set class A as $135

Step3:Set class B as $75

Step4:Set class C as $44

Step5:Enter the number of tickets sold for seat of class A i.e n1

Step6:Enter the number of tickets sold for seat of class B i.e n2

Step7:Enter the number of tickets sold for seat of class A i.e n3

Step8:Output amount generated by selling tickets of class A is A1=n1*135

Step9:Output amount generated by selling tickets of class B is A2=n2*75

Step10:Output amount generated by selling tickets of class C is A3=n3*45

Step11:Output amount generated by selling tickets of class A,B &C is Total=$(A1+A2+A3)

Step12:end the pseudocode

2.

//pseudo code to calculate the average rainfall for 3 months

Step1:start the pseudocode

Step2:Enter the rainfall in inches for the month of February i.e i1

Step3:Enter the rainfall in inches for the month of March i.e i2

Step4:Enter the rainfall in inches for the month of April i.e i3

Step5:average rainfall avg =( i1+i2+i3/3)

Step6:output the rainfall for 3 months i.e Feb,March and April i.e avg

Step7:end the pseudocode.

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