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)
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