blob: 42471ae42c862f21b38909747915b1a5d9f69574 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
CST116 C++ Programming
Project 1 Part 1
Abdullah Havaldar
Phone: 503-764-5753
Email: [email protected]
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 <iostream>;
#include <list>;
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;
}
|