Write a complete Java program that do the following:

Q1 ;
Write a complete Java program that do the following:
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).
Print elements of the array studentName using enhanced for statement.
Get student’s ID from the user, store it in the array named studentID and print it
Find and print the sum and average of the array- studentID
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.
Q2 :
Create a class Person to represent a person according to the following requirements: A person has two attributes:
Create a class Product to represent a product according to the following requirements:
Create the class ProductTester with the main method. In this class do the following:
id
name.
a reference number (can’t be changed)
a price
an owner (is a person)
a shopName (is the same for all the products).
Add a constructer to initialize all the attributes to specific values.
Add all setter and getter methods.
A product has four attributes:
Add a constructer without parameters to initialize all the attributes to default values (0 for numbers, “” for a string and null for object).
Add a second constructer to initialize all the attributes to specific values. Use the keyword “this”.
Add the method changePrice that change the price of a product. The method must display an error message if the given price is negative.
Add a static method changeShopName to change the shop name.
Add all the getter methods. The method getOwner must return an owner.
Create a person p1. The person’s name and id must be your name and your student Id.
Create a product with the following information:
Change the price of the product to your age.
Change the shop name to your full name.
Print all the information of the product.
reference = 1.
price = a value from your choice.
owner = p1.
shopName = “SEU”.

Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded.
Q3:
Write a java program that do the following:
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.
Provide two classes named programmer and database specialist (DatabasePro).
Provide a class Main that creates programmer and database specialist then initialize and print their respective information.
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.
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).

Don't use plagiarized sources. Get Your Custom Essay on
Write a complete Java program that do the following:
Just from $13/Page
Order Essay

Note: Your answer should have the code as text as well as the screenshot of the program output. Otherwise, zero marks will be awarded.

Homework On Time
Calculate the Price of your PAPER Now
Pages (550 words)
Approximate price: -

Why Choose Us

Top quality papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional academic writers

We have hired a team of professional writers experienced in academic and business writing. Most of them are native speakers and PhD holders able to take care of any assignment you need help with.

Free revisions

If you feel that we missed something, send the order for a free revision. You will have 10 days to send the order for revision after you receive the final paper. You can either do it on your own after signing in to your personal account or by contacting our support.

On-time delivery

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & confidential

We use several checkers to make sure that all papers you receive are plagiarism-free. Our editors carefully go through all in-text citations. We also promise full confidentiality in all our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

You are welcome to choose your academic level and the type of your paper. Our academic experts will gladly help you with essays, case studies, research papers and other assignments.

Admissions

Admission help & business writing

You can be positive that we will be here 24/7 to help you get accepted to the Master’s program at the TOP-universities or help you get a well-paid position.

Reviews

Editing your paper

Our academic writers and editors will help you submit a well-structured and organized paper just on time. We will ensure that your final paper is of the highest quality and absolutely free of mistakes.

Reviews

Revising your paper

Our academic writers and editors will help you with unlimited number of revisions in case you need any customization of your academic papers