http://www.cs.uic.edu/~i109/HW2-109.pdf this is my hw assignment posted above in
ID: 3613664 • Letter: H
Question
http://www.cs.uic.edu/~i109/HW2-109.pdfthis is my hw assignment posted above in the site. IM NOT ASKINGANYONE TO DO MY HW im just confuse on how to do it.... i tried byusing loops and i keep getting mess up charts.
the teacher even gave us a hint on how to do it but i still dontseem to get it because he used a loop inside of a loop...which imstill confuse.
could someone show me a example of how to do it. u can use urvariables and make up ur own equation...i just need the basicstructure on how to built the chart the way he wants it... he saidto use a outer loop through the rows for the depth, the colum ofair should be a single loop and the percenteges should be a innerloop throught the colums.
i already did everything but idont know how to make the chart withthe loops and print it on the screen.
teachers hint:
Loop through each row {
Calculate the depth forthis row
Do calculations for air( 21% ) and print result
Loop through each (additional ) column {
Calculate the %oxygen for this column
Calculate the partial pressure of oxygen and print result
}
print end of linecharacter
}
Use a loop to print a row of dashes
Print "MOD"
Calculate and print the MOD for air
Loop through each ( additional ) column {
Calculate the %oxygenfor this column
Calculate and print theMOD for this gas mixture.
Explanation / Answer
please rate - thanks for(i=begin;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.