Psuedo code

A professor needs tutor his students (high school and college). The professor can only tutor up to 8 hours. He charges 15 bucks per hour for a high school student and 25 per hr for college student. If a college student is a gmu student he gives them 10% discount. Design a modular program that will prompt the user for a student level (highschool or college), number of tutor hours, and if there a GMU student. The program will calculate the total tutor fee and deduc any discount applicable. Lastly, it will print out the student level, number of hours tutored, and the tutor’s fee.

A modular program will accept a list of deserts and their prices. The program will prompt the user for the name of the desert and its corresponding price. The max price is 7 bucks. The program will also prompt the user if they have entered enough desert items.

The program will output a header "Desert Items", the list of well formatted names of deserts and prices, the total number of deserts, and the total sum price of all desert items entered.

1. Pseudocode: A farmer asks you to make a program that determines the cost to ship a crate of fruits/vegetables.  All the crates weigh the same. The cost depends on whether the fruits/vegs are organic or non-organic.  If they are organic, the base price per crate is $5 and the shipping cost is $0.12 per mile. If they are non-organic the base price is $7 per crate and $0.17 per mile. They can be shipped a maximum of 100 miles.  Write a modular program that asks what type of fruit/veg crate you will ship, the distance it will travel, then outputs the type, the distance to ship, and the total cost to ship. The program should give error messages if input is invalid.

2. Java code: You work at a zoo that has at most 50 animals. Write a modular program that prompts for animal names then prompts for the weight of those animals, maximum of 10,000 lbs each. The program should print error and reprompt if name or weight is invalid. Then print a report that states all the animal names and weights, a list of all the animals that weigh more than 1000 lbs, and how many animals weigh more than 1000 lbs.

 

 

    • 9 years ago
    A+ Answers
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      tn255.docx