Answer to Question #300759 in Java | JSP | JSF for pape

Question #300759

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.





1
Expert's answer
2022-02-22T01:10:48-0500
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;
        }
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS