forked from ddtruong50/cpsc254-git_lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
129 lines (113 loc) · 2.42 KB
/
main.cpp
File metadata and controls
129 lines (113 loc) · 2.42 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#include <iostream>
#include "func15.h"
#include "factorial.h"
#include "lowercase.h"
#include "UTC.h"
#include "Git Lab 30.h"
#include "salesTax.h"
#include "randomNumGenerator.h"
#include "areaSurfaceCube.h"
#include "digit_to_word.h"
#include "salesTax.h"
#include "savefile.h"
#include "Magic8Ball.h"
#include "randomNumGenerator.h"
#include "linecounter.h"
#include "milestokm.h"
#include "Name_Story.h"
#include "blink.h"
#include "reverse_int.h"
#include "battingAverage.h"
#include "countWords.h"
#include "VolumeOfCubes.h"
#include "printDate.h"
using namespace std;
int main()
{
int choice;
cout<<\
"\n1) How many characters in a file\
\n2) Display date\
\n3) Get a random number\
\n4) Display UTC time\
\n5) Blinking text\
\n6) Show free RAM\
\n7) Miles to Kilometers\
\n8) Sales tax\
\n9) Average score\
\n10) Name to story\
\n11) Batting average\
\n12) Save input to file\
\n13) Reverse int digits\
\n14) Fibinacci sequence\
\n15) F to C temperature\
\n16) Area of a rectangle\
\n17) Magic eight ball\
\n18) Digit to word\
\n19) Factorial\
\n20) Largest number\
\n21) Words in a file\
\n22) Surface area of a sphere\
\n23) Quadratic formula\
\n24) Reverse string\
\n25) Count lowercase\
\n26) Count lines\
\n27) Count spaces\
\n28) Print a random color\
\n29) Print a random fruit\
\n30) Print the current season\
\n31) Print the surface area of a cube\
\n32) Print the volume of the cube\
\n";
cout << "Enter your choice: ";
cin >> choice;
switch (choice){
case 1: break;
case 2: printDate();
case 3: randomNumGenerator();
break;
case 4: UTCtime();
case 5: blink();
break;
case 6: break;
case 7: conversionMilesToKM ();
break;
case 8: salesTax();
break;
case 9: break;
case 10: name_story()
break;
case 11: battingAverage();break;
case 12: savefile(); break;
break;
case 14: break;
case 15: tempConvert();
break;
case 16: break;
case 17: magic8ball();
break;
case 18: dothing();
break;
case 19: factorial();
break;
case 20: break;
case 21: countWords();
case 22: break;
case 23: break;
case 24: break;
case 25: countingLowercase();
break;
case 26: linecounter();
break;
case 27: break;
case 28:break;
case 29: break;
case 30: displayseason();
break;
case 31: areaSurfaceCube();
break;
case 32: VolumeOfcubes();
default: cout<<"Not a valid choice.\n"; break;
}
return 0;
}