lab assigments 1. W rite a program that inputs FRO M THE U SER the values of three Boolean variables cin operator from the eight Possible cases used in the previous dem o w hich are in the text Table...

1 answer below »
I need lab 7 and 8 done please!separate labs please! Follow lab 4 report format/style for refrence , I attached lab 4 and report for REFERENCE ONLYI also attached course syllabus


lab assigments 1. W rite a program that inputs FRO M THE U SER the values of three Boolean variables cin operator from the eight Possible cases used in the previous dem o w hich are in the text Table 3.2 2. Since the user gives the values be sure to prom pt O R IN STRU CT THE U SER, W HAT THIS PRO GRAM IS ALL ABO U T W HAT THEY W ILL N EED TO GIVE AN D W HAT THEY W ILL GET.). 3. O nce values are in the program determ ines the Boolean logical value of the conditions that follow as true or false. !( A& & B& & !C) and ( A||B) & & C 4. O utput should include the values of a,b,c ie 0 or 1 in patterns that include the values com bined w ith strings and an appropriate string variable as follow ing exam ple of one case. input of a=1 and b =0 and c=1 results in output looking like !( 1& & 0& & 0) is True (1||0)& & 1 is True For exam ple, if the condition w as a sim ple a& & b and a=1 and b=0 then the output w ould look like 1& & 0 is False the com puter line doing this w ould be cout Fbanana385 report Severe thunderstorm s, including tornados are likely. 4. note: use only one nested IF/else structures to cover the 3 cases not 3 HIN T: see play com puter exam ple in the lecture FO R THE DESIGN . 5 .Find by trial and error input data in there range above to Run for each of the three possible outcom es. O utput all values,SW I ,T& W and an appropriate report statem ent! 6. Run one hand check for the value of T for one of your inputs of T and W . show results on program 7. D o a flow chart and send in w ith the program : D esign in w ord w hich has M ost Flow chart sym bols in 8.REM EM BER A GO O D ABSTRACT AN D PRO GRAM LAB #7 N ote due date from class,, Em ail subject G #-lab7 lab 4 and 5 LAB 4 TEM PLATE GENERAL OVERALL PRO GRAM STRUCTURE-O RGANIZATIO N 1. A bstract for the program m er, w hat this is all about, form ulas used in algebraic form 2.Includes section Necessary libraries to run program 2. m ain() int m ain() { starts solution line com m ents // that clarify are used liberally below 3.D eclaration 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 (new tons/coulom b). a sm all positive charged particle, q , (coulom bs) is placed at the top plate and experiences a force, f (new 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. 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="" (new="" tons/coulom="" b).="" a="" sm="" all="" positive="" charged="" particle,="" q="" ,="" (coulom="" bs)="" is="" placed="" at="" the="" top="" plate="" and="" experiences="" a="" force,="" f="" (new="" 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="">
Answered 3 days AfterMar 11, 2022

Answer To: lab assigments 1. W rite a program that inputs FRO M THE U SER the values of three Boolean variables...

Vaibhav answered on Mar 15 2022
116 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