Entries by Student

write my assignment 28708

make changes to the existing code. take input a function. In the interactive part, you will write the to input the temperature  that temperature to the calling program.

  1. b) In lab 2A you were asked to do the following: Add a message based on the windchill. You decide the message. As an example, if the windchill is between 0 and 20 degrees or below you might say “brrrrrr…….that’s cold”; if it is between -1 and -20 you might say “Are we human flavored popsicles yet?”Move this whole code to a function. This function will need the temperature that you input. This function will also calculate the windchill and then print out the message.
  2. use this previous code

#Function print_table

#This function will print the tabular wind chill

#Input to function: none

#Output from function: none through the return statement

#Effect of cuntion: print table of temperatures and windchill indices

def print_table():

  print(“This is the magical wind chill calculator! Enter a temperature in degrees ”

        “Fahrenheit and a wind speed in MPH and see a wind chill value”)

  print(“See a sample below!”)

  print(“n”)

  print(format(“Temperature”,”20″),format(“Wind Speed”,”30″),format(“Wind Chill”,”30″),end=’n’)

  temp = 20

  wind = 19

  wct = 35.74 + 0.6215 * temp – 35.75 * wind**0.16 + 0.4275 * temp * wind**0.16

  print(format(temp,”<20,.2f”),format(wind,”<30,.2f”),format(wct,”<30,.2f”))

  temp = 0

  wind = 5

  wct = 35.74 + 0.6215 * temp – 35.75 * wind**0.16 + 0.4275 * temp * wind**0.16

  print(format(temp,”<20,.2f”),format(wind,”<30,.2f”),format(wct,”<30,.2f”))

  temp = -15

  wind = 25

  wct = 35.74 + 0.6215 * temp – 35.75 * wind**0.16 + 0.4275 * temp * wind**0.16

  print(format(temp,”<20,.2f”),format(wind,”<30,.2f”),format(wct,”<30,.2f”))

  print(“n=====================================================================n”)

#Function get_temp

#This function will input a tempertaure from the user

#and return the temperature to the calling function

#Input to function: None

#Output from function: returns the temperature input by the user

def get_temp():

#Function get_wind

#This function will input a wind speed from the user

#and return the wind speed to the calling function

#Input to function: None

#Output from function: returns the wind speed input by the user

def get_wind():

#Function calcWindChill

#This function will calculate the wind chill index

#Input to function: temperature and wind speed

#Output from function: returns the calculated wind chill

def calcWindChill(temp, wind):

#Function printWindChill

#This function will print the wind chill and the message

#Input to function: wind chill index, temperature, and wind speed

#Output from function: nothing through the return statement

#Effect of function: prints the temp, wind speed, and windchill index

#Prints a message

def printWindChill(wct, temp, wind):

def main():

  print_table()

  for index in range(5):

    print(“n”)

    temp_in = get_temp()

#insert call to function get_wind here

#Insert call tom function calcWindChill here

#insert call to function printWindChill here 

main()  

 

"Not answered?"


Get the Answer

write my assignment 30269

HI,

Please help me for this lab report as following:

Experiment 1 Find out what happens when an acid and base are mixed. 1. Move the lab manual to a corner of the lab so that you can view more of the lab and the workbench. The lab manual is also re-sizeable, so you can adjust it by clicking and dragging the re-size tab in the lower right corner to adjust the width and height to best suit your screen resolution. 2. As described above, on the lab wall you will see a shelf – it is actually three shelves in one: Containers shelf, Materials shelf and Instruments shelf. When you open any lab, the Containers shelf will be on display. 3. Click and drag the 150 mL Erlenmeyer Flask to the workbench below. When it is in position, just release it onto the workbench. 4. Click the Instruments tab of the shelf to display the Instruments available in this lab. Click and drag the Thermometer onto the Erlenmeyer Flask on the workbench. With the mouse cursor positioned over the Erlenmeyer Flask, release the mouse button to attach the Thermometer to the Erlenmeyer Flask. An audible click (along with a small chain symbol) indicate that the Thermometer is attached. The Thermometer currently shows the room temperature of 21.5C. 5. Click the Materials tab. Click and drag the bottle containing 6M HCl (hydrochloric acid) and drop it on the Erlenmeyer Flask on the workbench. When the mouse cursor is positioned over the flask, release the bottle of hydrochloric acid. You are now asked to enter an amount of hydrochloric acid to add to the Erlenmeyer Flask. Type in ’10’ and click OK. The beaker will be filled with 10 mL of HCl (hydrochloric acid). 6. From the Materials Shelf, click and drag the flask of 1M NaOH (sodium hydroxide) and drop it onto the Erlenmeyer Flask. Enter 10 mL for the amount and click OK. 7. Something has happened! The temperature of the liquid in the Erlenmeyer Flask has gone up – a reaction has taken place. 8. Open your Lab Notes by clicking the Lab Notes button in the Lab Manual. Record the maximum temperature displayed by the thermometer in your Lab Notes, and click the Save button. Any time you take notes in the lab, remember to click Save Notes at the bottom, otherwise you will lose your notes. 9. Return to the Procedures window by clicking the Procedures tab, and scroll down to Experiment 2.

Experiment 2 In this experiment you will investigate the relationship between the volume and pressure of a gas. 1. Begin by clearing the workbench of all Instruments and Containers from Experiment 1, since they will no longer be needed. Cick on the Erlenmeyer Flask and drag it to the Recycle Bin located beneath the workbench. The Thermometer is grouped with the Erlenmeyer Flask and will also be recycled. Notice that if you click on the Thermometer and drag it, only the Thermometer moves. Remember, this is because in our labs, everything revolves around containers. The workbench should now be empty. 2. Click the Containers tab to view the Containers Shelf. Click and drag the Erlenmeyer Flask and place it on the workbench. 3. Double-click the Erlenmeyer Flask on the workbench . This will open a window with the options open or close the flask, or label your flask with a new name. Close the flask and click OK. An airtight stopper is now placed into the mouth of the flask, sealing the air inside. 4. Click the Instruments tab to view the Instruments Shelf. Click the Pressure Gauge and drag it onto the Erlenmeyer Flask. Make sure the Pressure Gauge connects to the flask with an audible click and display of chain links. The Pressure Gauge should now show that the pressure inside the Erlenmeyer Flask is 1 atm (“atm” stands for the unit of pressure “atmospheres”). (If you’re not sure what a pressure gauge looks like you can roll over the instruments with the mouse and their names appear above.) 5. Move the mouse cursor over the Erlenmeyer Flask. A a grey window with your flask’s label and a yellow indicator tag that displays the combined volume of solids and liquids in the flask will both appear. Since the flask is empty, except for the air trapped inside, the volume displayed is 0.0 mL. This measurement means that the volume occupied by the trapped air is the total capacity of the flask, 150 mL. 6. Open the Lab Notes section in the Lab Manual and record the volume and pressure of the air in the flask. 7. Now add 20 mL of Water from the Materials shelf to the Erlenmeyer Flask by dragging the water bottle onto the flask. 8. The pressure in the flask has increased! This is because the volume available to the air in the flask has been reduced by 20 mL – it is now 130 mL. Record the new volume and pressure in your lab notes. 9. Continue to add Water in 20 mL increments until the liquid volume reaches a total of 100 mL. Record the gas volume (150 mL minus the liquid volume) along with the pressure for each increment of water added. Now you’re finished with the procedure portion of the lab and can continue onto your assignments.

 

"Not answered?"


Get the Answer

write my assignment 4729

Parker Corporation had the following bond transactions during the fiscal year 2017:

  1. On January 1: issued 100 $1,000 bonds at 103. The 5-year bonds is dated January 1, 2017. The contract interest rate is 5%. Straight-line amortization method is used. Interest is payable semi-annual on January 1 and July 1.
  2. On July 1: Parker Corporation issued $500,000 of 10%, 10-year bonds. The bonds dated July 1, 2017 were issued at 90, and pay interest on July 1 and January 1. Straight-line amortization method is used.
  3. On October 1: issued 10-year bonds $10,000 face value bonds, for $10,853 cash. The bonds have a stated rate of 9%, but an effective rate of 6%. Straight-line amortization method is used. Interest is payable on October 1 and April 1.

 

"Not answered?"


Get the Answer

write my assignment 3436

Bank operations using T accountsThis assignment utilizes the material in Chapter 10 of the text regarding commercial banking balance sheets. First, use a T-account to show how a $100 deposit affects the balance sheet. Separate the funds into required reserves and excess reserves using a required reserve ratio of 0.1. Second, demonstrate what happens to the balance sheet when the bank loans out all of the excess reserves. Third, demonstrate what happens to the balance sheet after loaned funds are deposited in a different bank.

This assignment utilizes the material in Chapter 10 of the text regarding commercialbanking balance sheets. First, use a T-account to show how a $100 deposit affects thebalance sheet. Separate…

 

"Not answered?"


Get the Answer