Java | JSP | JSF Answers

Questions answered by Experts: 3 611

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!

Search

To develop Java application and use Java Swing using below

requirements.


Tutora is an educational institute which provides education and

research to country. Currently their entire business process is

operated with books and emails. As a startup company your group has

been hired to automate the manual process of Tutora. The following

main business requirements has been discussed by the client. Implement

a java Swing Application to automate the business requirements.


Manage Examination issues (Add,Update,Remove) 


Design a Java application that will allow a user to capture the top students for a module. Allow the
user to enter in the module name, followed by the number of students the user would like to
capture
Continue to capture the results for the number of students entered. Once all the student results
have been captured create a results report.
In the results report display the student results entered, a student count and the average result
obtained.
Make use of a method to get the input from the user, another method to accumulate the student
results, a method to determine the average result and a final method to create the results report.
In your solution make provision if a user has entered in an invalid result amount. Any result
entered that is below zero (0) is an invalid entry.
Design a Java application that will store three different vehicle details for a local car dealership.
The vehicle details must be stored in parallel arrays for the Vehicle Identification Number (VIN),
Vehicle Manufacturer and Vehicle Price. Use the following data as an example when populating
the arrays.
VIN Manufacturer Vehicle Price
112367 AUDI R 180 000
212367 BMW R 170 000
312367 VOLVO R 210 000
Prompt the user with a menu system for searching or displaying the vehicles. The user must have
the option to enter the numbers 1, 2, or zero (0) to exit the application. Make use of JOptionPanes
for input and output. Create a loadArray() method that will store the vehicle details into the three
parallel arrays.
If the user enters a one (1) provide functionality for a vehicle search. Create a searchArray()
method and write the code to enable the user to search for a specific vehicle. If the VIN is found in
the array, display the vehicle details.
Question 5 (Marks: 40)
Design a Java application that will store three different vehicle details for a local car dealership.
The vehicle details must be stored in parallel arrays for the Vehicle Identification Number (VIN),
Vehicle Manufacturer and Vehicle Price. Use the following data as an example when populating
the arrays.
VIN Manufacturer Vehicle Price
112367 AUDI R 180 000
212367 BMW R 170 000
312367 VOLVO R 210 000
Prompt the user with a menu system for searching or displaying the vehicles. The user must have
the option to enter the numbers 1, 2, or zero (0) to exit the application. Make use of JOptionPanes
for input and output. Create a loadArray() method that will store the vehicle details into the three
parallel arrays.
If the user enters a one (1) provide functionality for a vehicle search. Create a searchArray()
method and write the code to enable the user to search for a specific vehicle. If the VIN is found in
the array, display the vehicle details.
Design a Java application that will allow a user to capture the top students for a module. Allow the
user to enter in the module name, followed by the number of students the user would like to
capture.
Continue to capture the results for the number of students entered. Once all the student results
have been captured create a results report.
In the results report display the student results entered, a student count and the average result
obtained.
Make use of a method to get the input from the user, another method to accumulate the student
results, a method to determine the average result and a final method to create the results report.
In your solution make provision if a user has entered in an invalid result amount. Any result
entered that is below zero (0) is an invalid entry.
Design a Java application that will allow a user to keep track of the sales of an employee. The user
should be presented with an option to enter the employee name and the sales amount.
Continuously prompt the user to enter in a sales amount for an employee until a sentinel value of
zero (0) is entered as a sale amount.
Please note that all input must occur in the Console window. Once the sentinel value has been
entered display the employee sales report.
Make use of a method to get the input from the user, another method to accumulate the sale
amounts and a final method to determine the average sale amount. In your solution make
provision if a user has entered in an invalid sale amount. Any sale amount entered that is below
zero (0) is an invalid entry.
  1. Create a program that takes in the following CMD arguments: A car’s plate number (registration number), arrival time and departure time plus the cost for staying in the parking lot. Your task then  is to take these given information to print a simple receipt as indicated below (Don’t worry about the calculations for now.)

Sample run 1:

Java lab01_task04 N88W 8h30 9h45 6.25

Output:

Vehicle Details

N88W

++++++++++++++++++++++

Arrival             8h30

Departure       9h45

++++++++++++++++++++++

 Total Cost: N$ 6.25

++++++++++++++++++++++


implement a Java program to make a chat platform using synchronization between 3 threads.

similar code like below:

class Chat {
   boolean fl = false;
   public synchronized void Ques(String g) {
      if (fl) {
         try {
            wait();
         }catch (InterruptedException e) {
            e.printStackTrace();
         }
      }
      System.out.println(g);
      fl=true;
      notify();
   }
   public synchronized void Ans(String g) {
      if (!fl) {
         try {
            wait();
         }catch (InterruptedException e) {
            e.printStackTrace();
         }
      }
      System.out.println(g);
      fl=false;
      notify();
   }}
class T1 implements Runnable{
   Chat m;
   String[] s1={"Hi","How r u ?"};

   public T1(Chat m1) {
      this.m=m1;
      new Thread(this,"Ques").start();
   }
   public void run() {
      for (int i=0;i<s1.length;i++) {
         m.Ques(s1[i]);
      }}}
class T2 implements Runnable {
   Chat m;
   String[] s2={ "Hi","Great" };
   public T2(Chat m2) {
      this.m=m2;
      new Thread(this,"Ans").start();
   }
   public void run() {
      for (int i=0;i<s2.length;i++) {
         m.Ans(s2[i]);
      }}}
public class TestThread {
   public static void main(String[] args) {
      Chat m=new Chat();
      new T1(m);
      new T2(m);
   }}










Create a program where you have to design your own Java console application about any valid problem that your application must solve. Your solution can include solving a business problem, a new idea or even a game. Your application must make use of concepts such as arrays, loops, inheritance, constructors and information hiding. Output must be shown in the form of a report using the console. Use Advanced arrays & Introduction to inheritance



Create a GUI interface


1. When the program starts the user needs to be asked if they want to make a new entry or to

view a previous entry

2. If the user wants to make a new entry, the first question will be how many meters they

travelled (this will then need to be converted into kilometers)

3. The second question will give the user 3 options to choose from, and each option will have a

value. The options are as follows:

a. Hatchback = 3

b. SUV = 3.5

c. Sports car = 4.

When the user has selected an option that options value needs to be multiplied by the

distance they travelled in kilometers

4. The third question will allow the user to enter a description, of where they travel to and why

did they travel there.

5. All the information above needs to then be saved into a JSON file

6. If the user says he want to view a previous entry the JSON file needs to be loaded and

displayed.

7. You need to make use of error handling to ensure that the user only types in items that are

asked and not anything else


LATEST TUTORIALS
APPROVED BY CLIENTS