lays the like the image provided. Also i need the amount to be calculated and how i need the result is its the # of hours times hourly rate. and if the employee is comp sci add 1000 and if they are comp sec add 1000 and if they are both add 2000 to the total amount. also can you remove the 0s below each line.
can you make it so it displays the like the image provided. Also i need the amount to be calculated and how i need the result is its the # of hours times hourly rate. and if the employee is comp sci add 1000 and if they are comp sec add 1000 and if they are both add 2000 to the total amount. also can you remove the 0s below each line.
Step by step
Solved in 3 steps with 1 images
Create a meu-driven linked list program, and develop and use the following menu to implement the linked list, modifying the linked list program from the labs in class.
- Create a linked list (need to read from the “LinkedList.txt” to create the list)
- Create a new node
- Append them in ascending order of Lname
- Update data of the linked list
- Insert a new node to the linked list
- Delete a new node to the linked list
- Display linked list
- Exit
Test program with following questions
- Click a to create a linked list by adding a new field, Amount; display the last two nodes on the screen
- Click b to modify all the Lname to upper case and display the first 3 nodes
- Take a SS of your screen
- Click b to increase the hourly rate by 10 for all CS majors and display the first 3 nodes
- Click d to delete nodes whose NumOfHours are greater than 40, and display the nodes in linked list
- Take a SS of screen
- Click c to add a new node with (Alex, Rodrigo, 40, 50, Y, N. __) based on Amount sequence, display linked list
- Take SS of screen
- Click f
the instructions are above, some of the things that are not working and still need to be implemented is:
-clicking a to add the amount (which shouldn't be displayed before pressing a, it should just have the info),
-clicking b which will modify only the last name to uppercase (the first and last name are already uppercase before I press b which shouldn't be happening, and 'b' is used for another feature not just changing it to uppercase) maybe use an if statement and ask the user if they want to change it to uppercase for the first or last name, or increase hourly rate by 10 for comp sci majors.
-clicking b should also add 10 to the hourly rate for comp sci majors when updating data so if you could implement that
-the last thing is when clicking c, you should be able to insert a new node to the sequence with the amount calculated and display it.