-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
148 lines (79 loc) · 2.9 KB
/
README.txt
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
Please follow the directions below to verfiy the code works.
below are 2 sections. 1st section has steps for running the test yourself.
2nd section is output from running the steps myself on my computer
==========================================================================
TEST RUN #1
STEP1: run the program with the command
go run ibmcodechallenge.go
STEP2: cut and paste to the command line:
1 book at 12.49
1 music CD at 14.99
1 chocolate bar at 0.85
STEP3: press enter twice.
-------------------------------------------
TEST RUN #2
STEP1: run the program with the command
go run ibmcodechallenge.go
STEP2: cut and paste to the command line:
1 imported box of chocolates at 10.00
1 imported bottle of perfume at 47.50
STEP3: press enter twice.
-------------------------------------------
TEST RUN #2
STEP1: run the program with the command
go run ibmcodechallenge.go
STEP2: cut and paste to the command line:
1 imported bottle of perfume at 27.99
1 bottle of perfume at 18.99
1 packet of headache pills at 9.75
1 box of imported chocolates at 11.25
STEP3: press enter twice.
==========================================================================
THE FOLLOWING IS A SAMPLE RUN ON MY COMPUTER.
TEST RUN #1
metadojo@metadojoai:~/org/juansuero_ibm_codechallenge$ go run ibmcodechallenge.go
IBM Code Challenge for [email protected].........
PROBLEM TWO: SALES TAXES
usage: numitems [imported] product name at price
example: 1 imported box of chocolates at 10.00
( press enter twice after the last item to print receipt )
1 book at 12.49
1 music CD at 14.99
1 chocolate bar at 0.85
1 book: 12.49
1 music CD: 16.49
1 chocolate bar: 0.85
Sales Taxes: 1.50
Total: 29.83
--------------------------
TEST RUN #2
metadojo@metadojoai:~/org/juansuero_ibm_codechallenge$ go run ibmcodechallenge.go
IBM Code Challenge for [email protected].........
PROBLEM TWO: SALES TAXES
usage: numitems [imported] product name at price
example: 1 imported box of chocolates at 10.00
( press enter twice after the last item to print receipt )
1 imported box of chocolates at 10.00
1 imported bottle of perfume at 47.50
1 imported box of chocolates: 10.50
1 imported bottle of perfume: 54.65
Sales Taxes: 7.65
Total: 65.15
--------------------------
TEST RUN #3
metadojo@metadojoai:~/org/juansuero_ibm_codechallenge$ go run ibmcodechallenge.go
IBM Code Challenge for [email protected].........
PROBLEM TWO: SALES TAXES
usage: numitems [imported] product name at price
example: 1 imported box of chocolates at 10.00
( press enter twice after the last item to print receipt )
1 imported bottle of perfume at 27.99
1 bottle of perfume at 18.99
1 packet of headache pills at 9.75
1 box of imported chocolates at 11.25
1 imported bottle of perfume: 32.19
1 bottle of perfume: 20.89
1 packet of headache pills: 9.75
1 imported box of chocolates: 11.85
Sales Taxes: 6.70
Total: 74.68