Question: Homework I: Write a PseudoCode solution to each of the following. l). A salesperson leaves home every Monday and returns every Friday. He travels by
Homework I: Write a PseudoCode solution to each of the following. l). A salesperson leaves home every Monday and returns every Friday. He travels by company car. Each day on the road, he records the amount of gasoline put in the car. Given the starting odometer reading (the odometer reading before he leaves on Monday) and the ending odometer reading (the reading after he returns home on Friday), design an algorithm to find the average miles per gallon. 2). Sam Splicer installs coaxial cable for the Metro City Cable Company. For each installation, there is a basic service charge of $25 and an additional charge of S2 for each foot of cable. The president of the cable company would like a program to compute the revenue generated by Sam in a given month. For example, if during the month of January, Sam installs a total of 263 yards of cable at 27 different locations, he generates $2253 in revenue 3). The cost of an international call from New York to New Delhi is calculated as follows: Connection fee, $1.99; $2.00 for the first three minutes and 45 for each additional minute. Design an algorithm that asks the user to enter the number of the minutes the call lasted. The algorithm then uses the number of minutes the call lasted. A call less than three minutes pays $2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
