Name your database using your names as: “db_first_last_studentNumber”. ∙ Name all your tables in your database using this format: “tbl_tableName”. ∙
∙ This mini-project is worth 20 marks (10 marks for a working GUI, 10 marks for performing CRUD operations on a DB through the GUI).
Milestone:
For this unit, you are required to develop a GUI application using Java. The application should connect to a database and should be able to perform any CRUD operation.
Main goal:
Develop a Java application with GUI for a primary school called Duka.
Functional Requirements:
The application should allow:
i. A shop attendant to be able to login to upload stock of items (with prices). ii. A buyer be able to search for items, get their prices and make an order.
Non-functional Requirements:
The application should:
i. Have a user-friendly GUI for both shop attendant and buyer.
ii. Not crash in case a user makes a mistake, instead it should provide a clarification/warning.
import java.util.Random;
public class Duka{
public static void main(String[] args){
System.out.println("You want a GUI with database(Y|N): ");
switch{
case "Y":
System.out.println("It will be cost: " + new Random().nextInt(100) + 20);
break;
case "N":
System.out.println("Ok bye.");
break;
}
}
}
Comments
Leave a comment