forked from matkatmusic/PFMCPP_Project1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
151 lines (132 loc) · 2.37 KB
/
main.cpp
File metadata and controls
151 lines (132 loc) · 2.37 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#if false
/*
PFM::C++ For Musicians Task
Project 1 - Part 1 / 1
Video: Chapter 2 Part 1
Create a branch named Part1
write out 10 nouns.
for each of the 10 nouns, write out 3 actions it might perform, in plain english.
write out how you'd call that action in pseudo code, in the space between each block comment
If the action requires multiple words, use camelCaseToNameIt
don't forget the semi-colon after each statement
When you finish, commit your changes by clicking on the Source Control panel on the left, entering a message, and click [Commit and push].
Send me the the link to your repl.it in a DM on Slack
Wait for my code review.
*/
/*
example)
Noun: arm
action 1: the arm extends
action 2: the arm flexes
action 3: the arm rotates conter-clockwise
*/
arm.extend();
arm.flex();
arm.rotateCounterClockwise(); //demonstrates CamelCase
/*
1)
Noun: dog
action 1: dog barks
action 2: roll over
action 3: fetch
*/
dog.barks();
dog.rollOver();
dog.fetch();
/*
2)
Noun: box
action 1: box opens
action 2: unfolds
action 3: stacks
*/
box.opens();
box.unfolds();
box.stacks();
/*
3)
Noun: cup
action 1: filled with water
action 2: changes color
action 3: pours
*/
cup.fillWater();
cup.changeColor();
cup.pour();
/*
4)
Noun: athlete
action 1: jumps
action 2: runs
action 3: pole vaults
*/
athlete.jump();
athelete.run();
athlette.poleVault();
/*
5)
Noun: camera
action 1: take picture
action 2: zoom in
action 3: zoom out
*/
camera.takePicture();
camera.zoomIn();
camera.zoomOut();
/*
6)
Noun: wand
action 1: cast spell
action 2: illuminate
action 3: disappear
*/
wand.castSpell();
wand.illuminate();
wand.disappear();
/*
7)
Noun: airplane
action 1: fly
action 2: loop de loop
action 3: barrel roll
*/
airplane.fly();
airplane.loopDeLoop();
airplane.barrelRoll();
/*
8)
Noun: light saber
action 1: unsheath
action 2: melt lock
action 3: makes cool sound
*/
lightSaber.unsheath();
lightSaber.meltLock();
lightsaber.makeCoolSound();
/*
9)
Noun: bagel
action 1: cut in half
action 2: spread with cream cheese
action 3: eat
*/
bagel.cutHalf();
bagel.spreadCreamCheese();
bagel.eat();
/*
10)
Noun: webpage
action 1: reloads
action 2: scrolls down
action 3: saves
*/
webpage.reload();
webpage.scrollDown();
webpage.save();
#endif
#include <iostream>
int main()
{
std::cout << "good to go" << std::endl;
return 0;
}