SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 15 Oct 2017 My Price 10.00

WriTe a functon gas reFll() ThaT Takes The following argumenTs,

Queston 1 WriTe a functon gas reFll() ThaT Takes The following argumenTs, in This order:1. dis: a disTance in miles ThaT a car has driven non-sTop wiTh sTeady speed during some portonof The Trip2. mins: The number of minuTes iT Took The car To drive The given disTance dis3. price: The price of gas per gallon aT The momenT.4.ToTalmins:aninTegerThaTrepresenTsTheToTaltmei±ook(inminuTes)forThecarToreachiTsdestnaton, assumingThaT The car drove aT The average speed calculaTed by dis and mins ThroughouT The whole Trip.Based on The sTatstcs provided above, your program should calculaTe and reTurn The ToTal cosT ofgas required for The ToTal mins, assuming ThaT The car has a fuel efFciency of 20 miles per gallon.Examples: ²unctonCallReTurnValuegas reFll(10, 10, 2.0, 30)3.0gas reFll(30, 15, 2.62, 17)4.454gas reFll(16, 5, 1.77, 9)2.5488Queston 2In formula below from physics illusTraTes The relaton beTween heaT and TemperaTure change: Q =m·C ·∆³1. Q: The quantTy of heaT Transferred To or from The objecT in J (Joules)2. m: The mass of The objecT in g (grams)3. C: The heaT capaciTy of The objecT maTerial4. ∆³: The TemperaTure change of The objecT (in Celsius) due To The change of heaTWriTe a functon heaT Transfer() ThaT Takes The following argumenTs, in This order:1. m: The mass of The objecT in grams2. c: The heaT capaciTy3. inital: The inital TemperaTure of The objecT in Celsius4. Fnal: The Fnal TemperaTure of The objecT in CelsiusYour functon should FrsT calculaTe how much heaT was Transferred To or from The objecT. NoTeThaT ∆³ can be easily calculaTed as Fnal - inital.NexT, The functon should calculaTe and reTurn by how many degrees The same mass of waTerwould be heaTed up or cooled down if some waTer absorbed or emi±ed ThaT much heaT energy.Assume ThaT The waTer’s inital TemperaTure is 0. ³he heaT capaciTy (C) for waTer is 4.18J/g/◦Celsius.Here are some hinTs for how To compuTe The Fnal TemperaTure of The waTer: The FrsT seT ofcalculatons your code performswillcalculaTe Q forus. WeareToldThaT C forwaTeris 4.18andTha±hesTartngTemperaTureo´hewaTer is assumed To be 0◦ Celsius. We also know ThaT Themass,m,ofThewaTerisThesameasTheoriginalobjecT.WiThsomealgebrayouwillneedToFndaformulaTocompuTeTheFnalTemperaTureo´hewaTerandhaveyourfuncton reTurn ThaT value.Examples: ²unctonCall ReTurnValueheaT Transfer(550, 2.32, 16, 46) 16.650717703349283heaT Transfer(426, 5.53, 39, 100) 80.70095693779906heaT Transfer(50, 3.31, 88.6, 87.1) -1.187799043062201
Background image of page 1

Attachments:

Answers

(5)
Status NEW Posted 15 Oct 2017 07:10 AM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)