labAssignment3 - cin >> test // Promt...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 // This code show the average for this class #include <iostream> int main() { double lab, test, finalE, finalA cout << "Lab Assignment 3\t CSE 1020.301" << endl << "Kasey Scott \t kaseyscott@my.unt.edu" << endl // Promt user to enter Lab Total. cout << "\nPlease enter Lab Total (0-1100): " cin >> lab // Promt user to enter Test Total. cout << "Please enter Test Total: "
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin &gt;&gt; test // Promt user to enter Final Exam Total. cout &lt;&lt; &quot;Please enter Final Exam Total: &quot; cin &gt;&gt; finalE // The equation for the Final Average. finalA = (lab / 1100) * 56 + (test / 200) * 34 + (finalE / 100) * 10 // Show the Final Average cout &lt;&lt; endl &lt;&lt; &quot;\nFinal Average: &quot; &lt;&lt; finalA &lt;&lt; endl return 0 }...
View Full Document

Ask a homework question - tutors are online