Use Java Following Project Project Given Simply Assignment Implemented Local Machine Guys Q43788471
Use Java to do The following Project
the project is given simply as an assignment and will beimplemented on local machine. so you guys can follow and do thecoding without additional information like Use case or otherthings.
think the project as entities try to exchange email, attache afile to send, send group email, read the rest from thequestion.

Distributed systems Project Email system Requirement • Users need to register to the system and get an account name they prefer with password • Registered users can o Send a single email o Send group email • Send email to all in the group · Reply to specific users only from the group · Reply with a blind carbon copy • Forward an email with time stamp to registered users o They can open previous emails and send emails to groups or individuals • Every email will have a time stamp of when it was sent • Each registered user will see from the database • Their inbox o Their sent message o Their draft message Users can subscribe to content providers and they will send them emails randomly which you can categorize in social or promotion inbox like in Gmail. They cannot reply to these emails but they can only subscribe and receive emails. GUI is a must for all users from registration, login and viewing and managing emails Additional o After some time if an email is not replied to, then the person will be reminded of the email o Users can send attachments o Users can have multiple compositions opened at a time Show transcribed image text Distributed systems Project Email system Requirement • Users need to register to the system and get an account name they prefer with password • Registered users can o Send a single email o Send group email • Send email to all in the group · Reply to specific users only from the group · Reply with a blind carbon copy • Forward an email with time stamp to registered users o They can open previous emails and send emails to groups or individuals • Every email will have a time stamp of when it was sent • Each registered user will see from the database • Their inbox o Their sent message o Their draft message Users can subscribe to content providers and they will send them emails randomly which you can categorize in social or promotion inbox like in Gmail. They cannot reply to these emails but they can only subscribe and receive emails. GUI is a must for all users from registration, login and viewing and managing emails Additional o After some time if an email is not replied to, then the person will be reminded of the email o Users can send attachments o Users can have multiple compositions opened at a time
Expert Answer
Answer to Use Java to do The following Project the project is given simply as an assignment and will be implemented on local mach…
Use Java Following Project Project Given Simply Assignment Implemented Local Machine Guys Q43788522
Use Java to do The following Project
the project is given simply as an assignment and will beimplemented on local machine. so you guys can follow and do thecoding without additional information like Use case or otherthings.
think the project as entities try to exchange email, attache afile to send, send group email, read the rest from thequestion.

Distributed systems Project Email system Requirement • Users need to register to the system and get an account name they prefer with password • Registered users can o Send a single email o Send group email • Send email to all in the group · Reply to specific users only from the group · Reply with a blind carbon copy • Forward an email with time stamp to registered users o They can open previous emails and send emails to groups or individuals • Every email will have a time stamp of when it was sent • Each registered user will see from the database • Their inbox o Their sent message o Their draft message Users can subscribe to content providers and they will send them emails randomly which you can categorize in social or promotion inbox like in Gmail. They cannot reply to these emails but they can only subscribe and receive emails. GUI is a must for all users from registration, login and viewing and managing emails Additional o After some time if an email is not replied to, then the person will be reminded of the email o Users can send attachments o Users can have multiple compositions opened at a time Show transcribed image text Distributed systems Project Email system Requirement • Users need to register to the system and get an account name they prefer with password • Registered users can o Send a single email o Send group email • Send email to all in the group · Reply to specific users only from the group · Reply with a blind carbon copy • Forward an email with time stamp to registered users o They can open previous emails and send emails to groups or individuals • Every email will have a time stamp of when it was sent • Each registered user will see from the database • Their inbox o Their sent message o Their draft message Users can subscribe to content providers and they will send them emails randomly which you can categorize in social or promotion inbox like in Gmail. They cannot reply to these emails but they can only subscribe and receive emails. GUI is a must for all users from registration, login and viewing and managing emails Additional o After some time if an email is not replied to, then the person will be reminded of the email o Users can send attachments o Users can have multiple compositions opened at a time
Expert Answer
Answer to Use Java to do The following Project the project is given simply as an assignment and will be implemented on local machi…
Use Java Given Interface Code Interface Implementation Code Write Junit Tests Test Fuction Q43896727
USE JAVA: Given the Interface Code and the InterfaceImplementation Code; Write Junit Tests to test allfuctionality.
————-
Interface code:
public interface CustomList { /** * This method should add a new item into the CustomList and should * return true if it was successfully able to insert an item. * @param item the item to be added to the CustomList * @return true if item was successfully added, false if the item was not successfully added (note: it should always be able to add an item to the list) */ boolean add (T item); /** * This method should add a new item into the CustomList at the * specified index (thus shuffling the other items to the right). If the index doesn’t * yet exist, then you should throw an IndexOutOfBoundsException. * @param index the spot in the zero-based array where you’d like to insert your * new item * @param item the item that will be inserted into the CustomList * @return true when the item is added * @throws IndexOutOfBoundsException */ boolean add (int index, T item) throws IndexOutOfBoundsException; /** * This method should return the size of the CustomList * based on the number of actual elements stored inside of the CustomList * @return an int representing the number of elements stored in the CustomList */ int getSize(); /** * This method will return the actual element from the CustomList based on the * index that is passed in. * @param index represents the position in the backing Object array that we want to access * @return The element that is stored inside of the CustomList at the given index * @throws IndexOutOfBoundsException */ T get(int index) throws IndexOutOfBoundsException; /** * This method should remove an item from the CustomList at the * specified index. This will NOT leave an empty null where the item * was removed, instead all other items to the right will be shuffled to the left. * @param index the index of the item to remove * @return the actual item that was removed from the list * @throws IndexOutOfBoundsException */ T remove(int index) throws IndexOutOfBoundsException;
————————————-
interface implementation code:
import java.util.Arrays;// Updated this existing class to include the 7 changes stated belowpublic class CustomArrayList implements CustomList{ // 1st, created an instance variable called arraySize private int arraySize = 0; // 2nd, moved new Object[10] into the constructor as the constructor initializes // the object Object[] arrayObject; /** * add method contains the functionality of doubling the array in size when the * object array is full. EX: when adding the 11th element; object array grows * from 10 to 20 elements. EX: when adding the 21st element; object array grows * from 20 to 40 elements. */ // 3rd, Created the Constructor public CustomArrayList() { System.out.println(“Constructor call creates an array object of 10 elementsn”); arrayObject = new Object[10]; // Default ArraySize is 10 elements } // ———-New functionality required as part of Hw7 ——————– @Override public boolean add(int index, T item) throws IndexOutOfBoundsException { if (arraySize == arrayObject.length) { int invalidIndex = arrayObject.length + 1; System.out.println(“Cannot add element at index position = ” + invalidIndex); increaseSize(); return false; } else { arrayObject[arraySize++] = item; } return false; } // ———-Kept Old functionality from Hw5 ——————– @Override public boolean add(T item) { //4th, Provided Method body for the CustomList Interface’s add() method if(arraySize == arrayObject.length) { int invalidIndex=arrayObject.length+1; System.out.println(“Cannot add element at index position = ” + invalidIndex ); increaseSize(); return false; } else { arrayObject[arraySize++]= item; return true; } } @Override public T remove(int index) throws IndexOutOfBoundsException { // TODO Auto-generated method stub return null; } // ——————–Reusing Hw5’s Code for everything listed below // —————– @Override public int getSize() { // 5th, Provided Method body for the CustomList Interface’s getSize() method return arrayObject.length; } @SuppressWarnings(“unchecked”) @Override public T get(int index) { // 6th, Provided Method body for the CustomList Interface’s get() method return (T) arrayObject[index]; } // 7th, Created a brand new method that exists outside of the CustomList Interface // in order to grow the array in size when it gets full private void increaseSize() { int updatedSize = (arrayObject.length) * 2; System.out.println( “Updating the Array Size to go from ” + arrayObject.length + ” to ” + updatedSize + ” elements”); System.out.println(“Transferring all the elements into the bigger arrayn”); arrayObject = Arrays.copyOf(arrayObject, updatedSize); }}
Expert Answer
Answer to USE JAVA: Given the Interface Code and the Interface Implementation Code; Write Junit Tests to test all fuctionality. –…
Use Java Java Class Need Implement Student Class Least Following Methods Public Class Stud Q43871158
USE JAVA*
Java class
You need to implement a Student class with at least thefollowing methods.
public class Student { /* Constructs a student record with name and student number. */ public Student(String name, String number) throws Exception; /* Get the student number */ public String getNumber(); /* Get the student name */ public String getName(); /* Print the student record */ public void print();}
The Java class Course has a name, and can hold multiplestudents.
pulic class Course { /* Construct a course. */ public Course(String name) throws Exception; /* Find the name of a student by their number */ public String find(String number); /* Enroll a student into the course */ public void enroll(String name, String number) throws Exception; /* Prints the course and students */ public void print();}
public class Main {
public static void main(String[] args) throws Exception {
Student s = new Student(“Jack”, “100”);
s.print();
Course c = new Course(“Compilers”);
c.enroll(“Jack”, “100”);
c.enroll(“Jill”, “200”);
c.print();
}
}
Expert Answer
Answer to USE JAVA* Java class You need to implement a Student class with at least the following methods. public class Student { /…
Use Java Programming Following Questions Solutions Ready Within Today Jan 3 2020 7 00pm Gm Q43785194
Use java programming for the following questions to have thesolutions ready within today Jan 3 2020 at or before 7:00PM GMT+8time zone:
Write a method recursive(char aa,char bb) of a class Chart which returns a string starting from aa,concatenating with characters having values aa+1, aa+2, … andending with bb using recursion, where aa <= bb.For example, the call aChart.recursive(‘b’, ‘e’) returns thestring:
bcde
where aChart is an object of the class Chart.
Expert Answer
Answer to Use java programming for the following questions to have the solutions ready within today Jan 3 2020 at or before 7:00PM…
Use Java Programming Following Questions Solutions Ready Within Today Jan 3 2020 7 00pm Gm Q43785271
Use java programming for the following questions to have thesolutions ready within today Jan 3 2020 at or before 7:00PM GMT+8time zone:
Question 13
Some service fees (% of asset amount) of two investmentcompanies are shown in the following tables:
Company A:
Service Fee Type
Fee
Management Fee
1.5
Subscription Fee
5.0
Redemption Fee
1.0
Company B:
Service Fee Type
Fee
Platform Fee
0.2
Management Fee
1.0
Subscription Fee
2.0
The above information is to be storedin two maps (Map<String, Double>) referenced by companyA andcompanyB for Company A and Company B respectively. The service feetype is assumed to be unique in each map and it is the key ofit.
- Write a program segment to store the above information ofCompany A in a map companyA. Remember to create it first.
Expert Answer
Answer to Use java programming for the following questions to have the solutions ready within today Jan 3 2020 at or before 7:00PM…
Use Java Programming Following Questions Solutions Ready Within Today Jan 3 2020 7 00pm Gm Q43785281
Use java programming for the following questions to have thesolutions ready within today Jan 3 2020 at or before 7:00PM GMT+8time zone:
Question 13
Some service fees (% of asset amount) of two investmentcompanies are shown in the following tables:
Company A:
Service Fee Type
Fee
Management Fee
1.5
Subscription Fee
5.0
Redemption Fee
1.0
Company B:
Service Fee Type
Fee
Platform Fee
0.2
Management Fee
1.0
Subscription Fee
2.0
The above information is to be storedin two maps (Map<String, Double>) referenced by companyA andcompanyB for Company A and Company B respectively. The service feetype is assumed to be unique in each map and it is the key ofit.
- Assume that there are many entries in the map referenced bycompanyA. Using an enhanced for loop and an array, write a programsegment to store the number of service fee types in each feecategory using an element of the array. The fee categories are “fee<= 0.5”, “0.5 < fee <= 1.0”, and “fee > 1.0”.
- Assume there are many entries in the maps and one company canhave some service fee types not available in the other company.Write a program segment with an enhanced for loop to print out thename of each service fee available in both of thecompanies (A and B) and its lowest fee. For example, the string”Subscription Fee, 2.0″ is printed when we are considering”Subscription Fee”.
Expert Answer
Answer to Use java programming for the following questions to have the solutions ready within today Jan 3 2020 at or before 7:00PM…
Use Java Programming Following Questions Solutions Ready Within Today Jan 3 2020 7 00pm Gm Q43785290
Use java programming for the following questions to have thesolutions ready within today Jan 3 2020 at or before 7:00PM GMT+8time zone:
Question 14
Discrete event simulation is tosimulate events occurring at discrete time points. Between any twoconsecutive time points, no event occurs.
- Write a class Event with two integer instance variable time andtype, which represents an event of a specific type occurs at time.Also write the constructor Event(int time, int type), whichinitializes the attributes using the parameters. In using thisclass, you can assume the getter and setter methods areavailable.
- Write a class Bank with an attribute eventList, which is alist of Event. Add a method generateEvents(int n)which generates n random customer arrival events (with event type0) and put them into eventList in the order of increasing arrivaltimes. The arrival time of the first customer is a random integerbetween 0 to 10 (inclusively). Similarly, after the first customerhas arrived, the time to wait for the next customer to arrive, theinterarrival time, is also a random integer between 0 to 10. Otherfuture customer arrivals are similar. For example, if the firstcustomer arrives at 3 and the next 2 interarrival times are 2 and4, the actual customer arrival times are 3, 5 (=3+2) and 9(=5+4).
- Write a method waitingTime(int serviceTime) of Bank whichreturns the average waiting time of the customers whose arrivaltimes are in eventList, where serviceTime is the time each customerbeing served at the bank counter. In other words, the servicingtime of each customer is the same.
Expert Answer
Answer to Use java programming for the following questions to have the solutions ready within today Jan 3 2020 at or before 7:00PM…
Use Java Programming Following Questions Solutions Ready Within Today Jan 3 2020 7 00pm Gm Q43785294
Use java programming for the following questions to have thesolutions ready within today Jan 3 2020 at or before 7:00PM GMT+8time zone:
Question 15
A train consists of a number of carsand Cindy puts the cars of a train in decreasing order ofweightUnfortunately, ordering train cars is difficult. A personcannot easily lift a car and place it in the correct position. Itis impractical, if not impossible, to insert a car into an existingtrain. So, a car may only be added to the beginning or the end of atrain. The cars (with known weights) of a train arrive at a stationin a specific order. When a car arrives, Cindy can add it to thebeginning or the end of the train, or simply not adding it. Shelikes to make the train as long as possible, but the cars of itmust be sorted by weight, with the heaviest one at the front of thetrain. You can assume all the weights are different and we wouldlike to find the longest train Cindy can make.
- Write a class LongestTrain with a private attribute weight,which is an array of integers representing the weights of thetrains. The weight of car k is stored in weight[k-1]. The order ofarrival is car 1, car 2, …, car n, where n = weight.length. Alsowrite the constructor with a single parameter weight which isassigned to the attribute.
- Write a method findLongest() with the attribute weight as theparameter and returns an integer representing the longest trainCindy can make. You may write some other methods which are calledby findLongest().
Expert Answer
Answer to Use java programming for the following questions to have the solutions ready within today Jan 3 2020 at or before 7:00PM…
Use Java Programming Following Questions Solutions Ready Within Today Jan 3 2020 8 00pm Gm Q43785304
Use java programming for the following questions to have thesolutions ready within today Jan 3 2020 at or before 8:00PM GMT+8time zone:
Question 1
- (i) Describe one main function of a central processingunit.
-
- State a major difference between “high-level language” and”assembly language”.
- Perform the following conversions with your steps clearlyshown.
- Convert 1010 01112 to decimal
- Convert 9C16 to binary
- The following class contains an error. After removing it, themain() method can be run directly by the Java virtual machine.Suggest a simple correction to remove the error.
public class Q1PartA {
public static char main(String[]args) {
System.out.println(“Correcterrors.”);
}
}
Expert Answer
Answer to Use java programming for the following questions to have the solutions ready within today Jan 3 2020 at or before 8:00PM…