blob: 3d14b11d46e00e3d85f93167ea61a28917a05d5a (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
// CST116F2021-Lab2.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <iomanip>
using namespace std;
// int main()
// {
// int age = 19;
// float shoe_size = 8.5;
// int altitude = 0;
// char gender = 70;
// int weight = 175;
// return 0;
// }
//int main()
//{
// char ascii = 67;
// cout << ascii << '\n';
// ascii = 43;
// cout << ascii << '\n';
// cout << ascii << '\n';
// return 0;
//}
//
//int main()
//{
// int days_in_year = 365;
// int age = 18;
// int age_in_days = days_in_year * age;
// cout << "My age in days since my 18th birthday: "
// << age_in_days;
// return 0;
//};
//int main()
//{
// float temp = 0;
// cout << "Input temperature: ";
// cin >> temp;
// cout.setf(ios::fixed);;
// cout << setprecision(1) << setw(6) << temp;
// return 0;
//};
//int main()
//{
// cout << "Bob";
// cout.width(10);
// cout << "3.23";
// cout.width(15);
// cout << "Freshman";
// cout.width(30);
// cout << "Software Engineering\n";
//
// cout << "Jamie";
// cout.width(10);
// cout << "0.98";
// cout.width(15);
// cout << "Freshman";
// cout.width(30);
// cout << "Underwater Basket\n";
//
// cout << "Marcus";
// cout.width(10);
// cout << "4.00";
// cout.width(15);
// cout << "Freshman";
// cout.width(30);
// cout << "Management\n";
//
// cout << "Phong";
// cout.width(10);
// cout << "3.75";
// cout.width(15);
// cout << "Junior";
// cout.width(30);
// cout << "Encryption\n";
// cout << "Webster";
// cout.width(10);
// cout << "2.00";
// cout.width(15);
// cout << "Sophomore";
// cout.width(30);
// cout << "Wildlife Management\n";
// return 0;
//}
|