ISE 135 HW 6 Spring 2023 Solution Key (1)

docx

School

University Of Georgia *

*We aren’t endorsed by this school

Course

135

Subject

Industrial Engineering

Date

Jan 9, 2024

Type

docx

Pages

4

Uploaded by ChancellorEnergyCaterpillar26

Report
ISE 135 COMPUTER BASED MODELING HOMEWORK 6 SOLUTION KEY Due March 5, Sunday by 11:59pm Question 1(2.5 pts): Estimate how much a worker will earn before retiring at age 65 (The worker will work when she is 65, so she will earn money on that year as well). Ask the worker’s name, age, and starting salary and the annual percentage rise to the user. Assume the salary will increase by same rate each year. An output Example: SOLUTION: Question 2(2.5 pts): After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume a person drinks an 8-oz cup of brewed coffee containing 130 mg of caffeine, and that the caffeine is absorbed immediately into the body. Write a program by using while or for loops to calculate the following values. The number of hours required until less than 65 mg (one-half the original amount) remain in the body. The amount of caffeine in the body 24 hours after the person drinks the coffee. Suppose the person drinks a cup of coffee at 7 a.m. and then drinks a cup of coffee at the end of each hour until 7 a.m. the next day. How much caffeine will be in the body at the end of the 24 hours? The Output (You should find/have the same output)
SOLUTION: Question 3(2.5 pts): Count the number of vowels in a phrase input by the user. An output Example: SOLUTION: Question 4(2.5 pts): Each year’s level of production and price (per bushel) for most agricultural products affects the level of production and price for the following year. Suppose the soybean crop in a country was 80 million bushels in 2019 and where quantity is measured in units of millions of bushels. Generate a table to show the quantity and price from 2019 until 2023. The outcome:
SOLUTION: Extra Question: (Do not submit a solution for this question- this is just for your practice) The following list contains the members of the U.S. Supreme Court at the beginning of 2015. Each name is followed by a letter giving the political party (Republican or Democratic) of the president who appointed them. justices = ["Scalia R", "Kennedy R", "Thomas R", "Ginsburg D", "Breyer D", "Roberts R", "Alito R", "Sotomayor D", "Kagan D"] Write a program that creates two lists (one of Democratic appointees and one of Republican appointees) and display them. The Output: SOLUTION:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help