Write a complete Java program that do the following:1. Get student information

Learning Goal: I’m working on a java question and need support to help me learn.I will attach the fileI want a unique solution +I want pictures of the output Write a complete Java program that do the following:1. Get student information (first name and last name) from the user and store it in the array named studentName (first name and last name are stored in the first and last index of the studentName array).2. Print elements of the array studentName using enhanced for statement.3. Get student’s ID from the user, store it in the array named studentID and print it4. Find and print the sum and average of the array- studentID.Typical runs of the program:Note: Your answer should have the code as text as well as the screenshot of the program output (using your own student’s name and ID as part of your answer). Otherwise, zero marks will be awarded.Question Two1. Create a class Person to represent a person according to the following requirements: A person has two attributes:- id- name.a) Add a constructer to initialize all the attributes to specific values.b) Add all setter and getter methods.2. Create a class Product to represent a product according to the following requirements:A product has four attributes:- a reference number (can’t be changed)- a price- an owner (is a person)- a shopName (is the same for all the products).a) Add a constructer without parameters to initialize all the attributes to default values (0 for numbers, “” for a string and null for object).b) Add a second constructer to initialize all the attributes to specific values. Use the keyword “this”.c) Add the method changePrice that change the price of a product. The method must display an error message if the given price is negative.d) Add a static method changeShopName to change the shop name.e) Add all the getter methods. The method getOwner must return an owner.3. Create the class ProductTester with the main method. In this class do the following:a) Create a person p1. The person’s name and id must be your name and your student Id.b) Create a product with the following information:reference = 1.price = a value from your choice.owner = p1.shopName = “SEU”.c) Change the price of the product to your age.d) Change the shop name to your full name.e) Print all the information of the product.Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded.Class diagram Typical runs of the programQuestion ThreeWrite a java program that do the following:1. Create a super class named employee which has three attributes name, age and salary and a method named printData that prints name, age and salary of an employee.2. Provide two classes named programmer and database specialist (DatabasePro).a. Each one of these classes extends the class employee. Both classes; programmer and the DatabasePro inherit the fields name, age and salary from employee. For the programmer, we add a language attribute and for the specialist (DatabasePro), we add a database tool attribute.b. Each one of these classes has only the method printData(). This method prints the data of the employee (i.e., name, age and salary by invoking printData() in super class) as well as printing the special data for programmer( i.e., language) and for DatabasePro( i.e.,databaseTool).3. Provide a class Main that creates programmer and database specialist then initialize and print their respective information.Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded.Class diagram Typical runs of the program

Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
4.9
Sitejabber
4.6
Trustpilot
4.8
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.