From 0d310b796415ca86b3f1799ebc14c6265abcde4d Mon Sep 17 00:00:00 2001 From: abd00l4h <114624309+abd00l4h@users.noreply.github.com> Date: Wed, 5 Oct 2022 16:41:29 -0700 Subject: Create test.cpp --- Ch 5 Debugging Project/test.cpp | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Ch 5 Debugging Project/test.cpp (limited to 'Ch 5 Debugging Project/test.cpp') diff --git a/Ch 5 Debugging Project/test.cpp b/Ch 5 Debugging Project/test.cpp new file mode 100644 index 0000000..42471ae --- /dev/null +++ b/Ch 5 Debugging Project/test.cpp @@ -0,0 +1,44 @@ +/* + +CST116 C++ Programming +Project 1 Part 1 +Abdullah Havaldar + Phone: 503-764-5753 + Email: abdullah.havaldar@oit.edu + +Purpose: +To take in the Name, Income, and GPA of 4 people +Print them out with appropriate headings +Headings and data must line up +Must use Manipulators +Use appropriate data types to store the data + +*/ + +#include ; +#include ; +using std::cout; +using std::endl; + +int main() +{ + string name; + int income; + float gpa; + + cout << "Enter your name: "; + cin >> name; + + cout << "Enter your income: "; + cin >> income; + + cout << "Enter your GPA: "; + cin >> gpa; + + cout << "Person 1's name is "; + cout << name << endl; + cout << ". Their income is "; + cout << income << endl; + cout << ". Their GPA is "; + cout << gpa << endl; +} -- cgit v1.2.3