In this lab, we are going to solve tasks, and think as object-oriented programmers, please return to chapter 10 in your textbook if you have any questions.
In the previous lab, we've created a simple blog, you should complete this blog, you should add a class named Category
, this class will hold the posts of this category, you could only list posts in a certain category, assume that each category stores its posts in a different folder.
You will have a static list of categories:
In this task, you should create a simple accounting program, in the main menu of the application you will have the following options:
if you entered 1
, you should allow the user to add item code and quantity, and if the user adds 0
as the code the program will print the receipt.
if the user entered 2
:
if the user entered 3
:
if the user entered 4
:
All items should be saved in a text file items.txt
.
Think about your program, and design your UML digram, then solve the code.
Programming
Java
IUG