-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodo.txt
More file actions
51 lines (31 loc) · 1.56 KB
/
Copy pathtodo.txt
File metadata and controls
51 lines (31 loc) · 1.56 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
/* Filename: todo.txt
* Author: Justin Lee
* Date: 10 December 2019
* Description: This file will contain the tasks that I have to do
* in order to complete the assignment
*
*
*/
TODO:
/* so the program now compiles and runs, so now we need to sepearate the outputs based on which input file
that the data is from. we furthermore have to verify that the calculations for the tax is correct,
namely that we do not calculate tax from those items that are exempt from taxation
*/
Above has been completed
We now have to create a data structure that contains the list of items that are exempt from
being taxed. We have to determine which class and where exactly to instantiate this
data structure
Essentially we have two options for where we want to put the hashmap
the first option would be in the salesobject class
the second option would be in the totalsales class
might be better to insert it into the salesobject class and make a new private variable
that will notify it the item is tax exempt or not. we can set this variable by comparing
the word to the words in the dictionary set by the hashtable
potentially we can put the instantiation of the hashtable dictionary in the main method
of the salesobject class
in the totalsales class we are now required to fix the calculate tax and the print
methods to correctly reflect those items that are tax exempt
in the salesobject file, we have to run the names and see if there is a match in the
hashtable
we should be able to run unit tests afterwards
we are done modifying the salesobject class now