lab assigments LAB #3! SEE YO U R G RO U P VERSIO N . READ CAREFU LLY W H AT IS W AN TED !. Be sure each num bered task is done. N ote due date from class, , Em ail subject G #-lab3 V x x y V y 1. int...

1 answer below »
I need lab 4 and 5 done please separate labsplease follow lab 3 report format/styleI attached lab3 and report I also attached course syllabus


lab assigments LAB #3! SEE YO U R G RO U P VERSIO N . READ CAREFU LLY W H AT IS W AN TED !. Be sure each num bered task is done. N ote due date from class, , Em ail subject G #-lab3 V x x y V y 1. int m ain, etc. 2. Be sure the program has these four sections in order, An input part has to be added since the user w ill be asked to input valuesto a variable, nam ely, tim e. Declarationssection(num ericalvariable and string variable nam es,U sing good variable nam es, N O T ABBREVIATIO N S , Inputsection (prom pts user to input values), Calculations(form ulas) sections and O utput (coutstatem ents)section. 3. The program , explains to the user(W ITH cout)w hat it is all about, w hat they w ill give and w hat they w ill get, and then GETS IN PU T(W ITH cin)FRO M THE U SER for the tim e,t. Get the follow ing six values of tim e ,t, from the user, one at a tim e, so you have to run this program 6 tim es and copy 6 outputs at the end U SE tim e = 3 3.4, 5.4, 9.4 , 14, 34, 104 seconds Continued next slide Your program com putes the horizonal position from hom e plate, x, and vertical drop, y, and falling velocity V y , of a baseball in flight hit in a straight line at a horizontal velocity, V x =84 ft/sec to second base. The physics of the flight, horizontal m otion gives rise to the follow ing equations: horizonal position: x = V x t vertical dropping positon is y= 1/2gt 2, vertical dropping velocity V y = -gt; w here gravitational constant is g=32 ft/s 2 lab 3 continued: 4.U N ITS in Declaration section: put in a string variable . Eg. unit_velocity 5. O U TPU TS: Program clearly explains each of the follow ing outputs, the throw ing velocity Vx used, the tim e,t,the distance or horizontal position, x, and theoretical vertical drop,y and the falling velocity Vy. For each tim e and output is copied to com m ent field at the end, six tim es. 6. VERY IM PO RTAN T FO R YO U R GRADE: your program and its im portant lines, FILL IN // com m ents, of your ow n creation 7.After the first output, do a hand calculation to check com puter CO M PU TATIO N logic, SHO W THE RESU LTS IN THE FIN AL /* 8. ABSTRACT in /* fill in the com m ent paragraph*/ After you fully understand the program , be sure it explains to you the program m er w hat you did and contains the form ulas U SED. N O TE: as all abstracts show form ulas used in algebraic form lab assigments LAB 4 TEM PLATE GEN ERAL O VERALL PRO GRAM STRU CTU RE-O RGAN IZATIO N 1. Abstract for the program m er, w hat this is all about, form ulas used in algebraic form 2.Includes section N ecessary libraries to run program 2. m ain() int m ain() { starts solution line com m ents // that clarify are used liberally below 3.Declaration section. Typesof variables are defined, som etim es initialized. descriptive nam es for num erical variables and string variables useful for units 4. Inputsection if needed uses coutcom m ands to explain program for user, w hat it is all about, w hat they need to enter and w hat they w ill get. uses cin com m and to get values from user 5. calculations section form ulas that do the calculations need to solve the problem s 6.output section uses cout for values solved along w ith descriptive inform ation to understand w hat is com ing out of the program The charge hits the negative plate at a velocity v,falling in a tim e t. H itting w ith kinectic energy, K . Equations governing the behavior are F=Q E a =F/m y=1/2at 2 v=at K =1/2 m v 2 The charge Q = 4.1 X 10 -6C oulom bs and the electric field E is 6.84 X 10 7 N ew tons/C oulom b. The m ass m of the charged particle is 1.4 x 10 -6kg, considered a constantin this case, define in the correct place in the program (before m ain), and the separation of the plates Y = 0.54 m eters. 1. A B STR A C T: PR O G R AM M ER /*)w ith your nam e ,date and LAB #4 at start! 2. C O M M EN TS: // B e sure there are creative com m ents to yourself. A ll over. 3. U SER PR O M TS: descriptive output using cout, like cout<). u ser needs to know w hat it is all about and w hat to give and w hat they w ill get! in in p u t section c ontinued next slide +- + la b #4 carefully u se g u id e b elo w requirem ents a n d use last tem plate m odel structure.. n ote due date from class, em ail subject g #-lab4.feel free to h elp others but do not give your code! given electrodynam ic situation. tw o charged plates on the left, separated by a distance y (m eters), create an electric field, e, w hich is m easured as the force per unit charge (n ew tons/coulom b). a sm all positive charged particle, q , (coulom bs) is placed at the top plate and experiences a force, f (n ew tons), w hich creates an acceleration, a (m /s 2), tow ards negative, it travels the full distance y. 4. d e s c r ip tiv e n a m e s for variables not physics abbreviations as above. exam ple, double force, voltage, etc in d ec lar atio n sec tio n 5. u ser in pu t: a fte r e xp la in in g th e a ll, e n te r s th e c urrent values of cin and input in scientific notation (e) and form ulas calculate the rest like. in in p u t s e c tio n -c a lc u latio n s fo llo w ! 6.fir st so lu tio n : your program solves forthe force, f, and acceleration, a. 7. n ext c alc u latio n : from the third equation, y=1/2at 2 you need the tim e, t, setup solution as an equation a nd have the com puter solve it fo r t= 8. n ext c alc u latio n :then solutions for v since t is know n and then k 9. u s e e scientific notation for all. 10.. u se string variables to hold all the units and output them w ith calculated values. 11. b e sure to use follow ing m ath functions: pow () , sqrt() eg. pow (x,3) sam e as x 3 12. o utput w ith description and scientific setw () and seprecison(4) 13.. h and c alculation on the lab exercise to check com puter logic, add at end. 14. r e-r ead all in str u c tio n s b efo r e h a n d in g in to b e su r e a ll d o n e. lab #5: the m olecular w eight of organic com pounds n ote due date em ail subject g #-lab5 ie m olecular w eight is the com bining of the atom ic w eights of the individual elem ents in a m olecular! the program solves it for four m olecules, given the atom num bers in the m olecule. the organic com pounds are com posed of atom s of oxygen, carbon, nitrogen, sulfur and hydrogen w hose atom ic w eights (average of isotopes) are o xygen(o ) 15.9994; carbon(c ) 12.011; n itrogen(n ) 14.00674; sulfur(s) 32.066 h ydrogen(h) 1.00794 chlorine (cl) find on the w eb in am u units (atom ic m ass units- originally based on w eights relative to hydrogen now they use carbon. and are constant for this program .. 1. be sure use 2.. abstract o n th e to p o f th e pro g ram details to you the program m er 3. u ser: output w hat this program w ill do and w hat they have to give and w hat they w ill get!. 4. program inputs : asks user for the nam e of the com pound (use a string variable) and how m any of each of the above atom s are in it, use 0 if none. all on one line!!! see exam ple below . atom num bers com e from the chem ical form ula found in a table at the end of this exercise. e.g.h 2 o m eans 2 h u="" ser="" needs="" to="" know="" w="" hat="" it="" is="" all="" about="" and="" w="" hat="" to="" give="" and="" w="" hat="" they="" w="" ill="" get!="" in="" in="" p="" u="" t="" section="" c="" ontinued="" next="" slide="" +-="" +="" la="" b="" #4="" carefully="" u="" se="" g="" u="" id="" e="" b="" elo="" w="" requirem="" ents="" a="" n="" d="" use="" last="" tem="" plate="" m="" odel="" structure..="" n="" ote="" due="" date="" from="" class,="" em="" ail="" subject="" g="" #-lab4.feel="" free="" to="" h="" elp="" others="" but="" do="" not="" give="" your="" code!="" given="" electrodynam="" ic="" situation.="" tw="" o="" charged="" plates="" on="" the="" left,="" separated="" by="" a="" distance="" y="" (m="" eters),="" create="" an="" electric="" field,="" e,="" w="" hich="" is="" m="" easured="" as="" the="" force="" per="" unit="" charge="" (n="" ew="" tons/coulom="" b).="" a="" sm="" all="" positive="" charged="" particle,="" q="" ,="" (coulom="" bs)="" is="" placed="" at="" the="" top="" plate="" and="" experiences="" a="" force,="" f="" (n="" ew="" tons),="" w="" hich="" creates="" an="" acceleration,="" a="" (m="" s="" 2),="" tow="" ards="" negative,="" it="" travels="" the="" full="" distance="" y.="" 4.="" d="" e="" s="" c="" r="" ip="" tiv="" e="" n="" a="" m="" e="" s="" for="" variables="" not="" physics="" abbreviations="" as="" above.="" exam="" ple,="" double="" force,="" voltage,="" etc="" in="" d="" ec="" lar="" atio="" n="" sec="" tio="" n="" 5.="" u="" ser="" in="" pu="" t:="" a="" fte="" r="" e="" xp="" la="" in="" in="" g="" th="" e="" a="" ll,="" e="" n="" te="" r="" s="" th="" e="" c="" urrent="" values="" of="" cin="" and="" input="" in="" scientific="" notation="" (e)="" and="" form="" ulas="" calculate="" the="" rest="" like.="" in="" in="" p="" u="" t="" s="" e="" c="" tio="" n="" -c="" a="" lc="" u="" latio="" n="" s="" fo="" llo="" w="" !="" 6.fir="" st="" so="" lu="" tio="" n="" :="" your="" program="" solves="" forthe="" force,="" f,="" and="" acceleration,="" a.="" 7.="" n="" ext="" c="" alc="" u="" latio="" n="" :="" from="" the="" third="" equation,="" y="1/2at" 2="" you="" need="" the="" tim="" e,="" t,="" setup="" solution="" as="" an="" equation="" a="" nd="" have="" the="" com="" puter="" solve="" it="" fo="" r="" t="8." n="" ext="" c="" alc="" u="" latio="" n="" :then="" solutions="" for="" v="" since="" t="" is="" know="" n="" and="" then="" k="" 9.="" u="" s="" e="" e="" scientific="" notation="" for="" all.="" 10..="" u="" se="" string="" variables="" to="" hold="" all="" the="" units="" and="" output="" them="" w="" ith="" calculated="" values.="" 11.="" b="" e="" sure="" to="" use="" follow="" ing="" m="" ath="" functions:="" pow="" ()="" ,="" sqrt()="" eg.="" pow="" (x,3)="" sam="" e="" as="" x="" 3="" 12.="" o="" utput="" w="" ith="" description="" and="" scientific="" setw="" ()="" and="" seprecison(4)="" 13..="" h="" and="" c="" alculation="" on="" the="" lab="" exercise="" to="" check="" com="" puter="" logic,="" add="" at="" end.="" 14.="" r="" e-r="" ead="" all="" in="" str="" u="" c="" tio="" n="" s="" b="" efo="" r="" e="" h="" a="" n="" d="" in="" g="" in="" to="" b="" e="" su="" r="" e="" a="" ll="" d="" o="" n="" e.="" lab="" #5:="" the="" m="" olecular="" w="" eight="" of="" organic="" com="" pounds="" n="" ote="" due="" date="" em="" ail="" subject="" g="" #-lab5="" ie="" m="" olecular="" w="" eight="" is="" the="" com="" bining="" of="" the="" atom="" ic="" w="" eights="" of="" the="" individual="" elem="" ents="" in="" a="" m="" olecular!="" the="" program="" solves="" it="" for="" four="" m="" olecules,="" given="" the="" atom="" num="" bers="" in="" the="" m="" olecule.="" the="" organic="" com="" pounds="" are="" com="" posed="" of="" atom="" s="" of="" oxygen,="" carbon,="" nitrogen,="" sulfur="" and="" hydrogen="" w="" hose="" atom="" ic="" w="" eights="" (average="" of="" isotopes)="" are="" o="" xygen(o="" )="" 15.9994;="" carbon(c="" )="" 12.011;="" n="" itrogen(n="" )="" 14.00674;="" sulfur(s)="" 32.066="" h="" ydrogen(h)="" 1.00794="" chlorine="" (cl)="" find="" on="" the="" w="" eb="" in="" am="" u="" units="" (atom="" ic="" m="" ass="" units-="" originally="" based="" on="" w="" eights="" relative="" to="" hydrogen="" now="" they="" use="" carbon.="" and="" are="" constant="" for="" this="" program="" ..="" 1.="" be="" sure="" use="" 2..="" abstract="" o="" n="" th="" e="" to="" p="" o="" f="" th="" e="" pro="" g="" ram="" details="" to="" you="" the="" program="" m="" er="" 3.="" u="" ser:="" output="" w="" hat="" this="" program="" w="" ill="" do="" and="" w="" hat="" they="" have="" to="" give="" and="" w="" hat="" they="" w="" ill="" get!.="" 4.="" program="" inputs="" :="" asks="" user="" for="" the="" nam="" e="" of="" the="" com="" pound="" (use="" a="" string="" variable)="" and="" how="" m="" any="" of="" each="" of="" the="" above="" atom="" s="" are="" in="" it,="" use="" 0="" if="" none.="" all="" on="" one="" line!!!="" see="" exam="" ple="" below="" .="" atom="" num="" bers="" com="" e="" from="" the="" chem="" ical="" form="" ula="" found="" in="" a="" table="" at="" the="" end="" of="" this="" exercise.="" e.g.h="" 2="" o="" m="" eans="" 2="">
Answered 2 days AfterMar 05, 2022

Answer To: lab assigments LAB #3! SEE YO U R G RO U P VERSIO N . READ CAREFU LLY W H AT IS W AN TED !. Be sure...

Vaibhav answered on Mar 08 2022
127 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here