aboutsummaryrefslogtreecommitdiff
path: root/TextFile1.txt
blob: 819b3f2208d5b4a7a725aaff39f567e5b6832ef3 (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
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
James Lawrance Lab 4 Work + Output
----------------------------------

7a -
6.8 Exercises 1-9 -

1. 3
2. -nan(ind)
3. 32
4. .25
5. 6
6. 6
7. 5
8. 5
9. 4

9.3 Learn by Doing Exercises output -

This program will find the average of 3 user values
Enter the first number: 76.8
Enter the second number: 55.3
Enter the third number: 100

The average is: 77.3667

7b -
9.4 Learn by Doing Exercises output -

Enter the employee's salary
10000
Enter the employee's years of service
9

The employee's new salary will be 10500, and they will receive a bonus of 2000

7c -
9.5 Learn by Doing Exercises output -

output 1 -

Input the current hours (0-23)
12

Input the current minutes (0-59)
0

Input the current seconds (0-59)
0


Press 'd' for default, press 'm' for style menu.
d

The current time: 12:00:00PM in standard format

output 2 -

Input the current hours (0-23)
18

Input the current minutes (0-59)
50

Input the current seconds (0-59)
2


Press 'd' for default, press 'm' for style menu.
d

The current time: 6:50:02PM in standard format

output 3 -

Input the current hours (0-23)
9

Input the current minutes (0-59)
30

Input the current seconds (0-59)
00


Press 'd' for default, press 'm' for style menu.
m
Press 1 for 24 hour notation, 2 for military time, or 3 for standard format.
1

The current time: 09:30:00 in 24 hour notation

output 4 -

Input the current hours (0-23)
23

Input the current minutes (0-59)
59

Input the current seconds (0-59)
59


Press 'd' for default, press 'm' for style menu.
m
Press 1 for 24 hour notation, 2 for military time, or 3 for standard format.
2

The current time: 235959 in military time

output 5 -

Input the current hours (0-23)
25

Error: value outside of the range 0-23 entered.
Input the current hours (0-23)
21

Input the current minutes (0-59)
-15

Error: value outside of the range 0-59 entered.
Input the current minutes (0-59)
15

Input the current seconds (0-59)
60000000

Error: value outside of the range 0-59 entered.
Input the current seconds (0-59)
60

Error: value outside of the range 0-59 entered.
Input the current seconds (0-59)
20


Press 'd' for default, press 'm' for style menu.
m
Press 1 for 24 hour notation, 2 for military time, or 3 for standard format.
3

The current time: 9:15:20PM in standard format