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 & Filtering

Write a program called GradeBook.java. This program should do the following:

1. Prompt the user to enter 3 grades one at a time, and read them in using Scanner (assume the grades are integer numbers).

2. Compute the average of the 3 grades.

3. Print the resulting average (do not worry about rounding the result, just print the value with all of the decimal places).

Here is an example of what the program output will look like (bold-italics indicate user input):

Enter grade 1: 89

Enter grade 2: 93

Enter grade 3: 72

84.666666667 



Write a program called CalculateSeconds.java. This program should do the following:

1. Prompt the user to enter her/his name.

2. Greet the user by name and ask to enter a number of years (assume it will be an integer).

2. Compute the number of seconds in the number of years entered by the user (this should be done by calling the numOfSeconds() method).

3. Print the resulting number of seconds as shown below.


The numOfSeconds() method will:

1.  Take an integer value as the input parameters

2.  Calculate the number of seconds in the given number of years (assume that each year has exactly 365 days, with 24 hours in each day). Note, that you would need to use long and not int for these calculations to be accurate for a large number of years!

3.  Return the number of seconds (as a long, not an int).

output

Please enter your name: 

Peter

Hello, Peter. Please enter the number of years: 

15

There are 473040000 seconds in 15 years, Peter.


Write a program called GradeBookMethod.java. This program should do the following:

1. Prompt the user to enter 3 grades (assume the grades are integer numbers)

2. Compute the average of the 3 grades by calling a method, which you write, named: average( )

3. Print the resulting average (do not worry about rounding the result, just print the value with all of the decimal places)

The average( ) method will:

1.  Take 3 integer values as the input parameters

2.  Calculate the average of the three integers (what data type should the average be?)

3.  Return the average.

Here is an example of what the program output will look like (bold-italics indicate user input):

Enter grade 1: 89

Enter grade 2: 93

Enter grade 3: 72

84.666666667 



Q.1.11
When the user selects to view a report, display the product report generated from the

arrays in your application. You must create a class called ReportData which will contain get and set methods for each item required in the report

Sample Report Screenshot

PRODUCT REPORT

PRODUCT 1

PRODUCT CODE>> PRODUCT NAME>>

PRODUCT PRODUCT

CATEGORY >> WARRANTY >>

PRODUCT PRICE >>

PRODUCT LEVEL >>

PRODUCT SUPPLIER >>

FRODUCT 3

PRODUCT CODE>>

PRODUCT

CATEGORY >>

PRODUCT VARAMITY >>

PRODUCT PRICE >>

PRODUCT LEVEL

>>

PRODUCT SUPPLIER

PRODUCT 3

PRODUCT CODE: >>>

PRODUCT KAME>>

PRODUCT CATEGORY PRODUCT WARRANTY >>

PRODUCT PRICE >>

PRODUCT LEVEL

PRODOCT SUPPLIER >>

2 years

14500.0

Q.1.11

2 years

22500.0

3

IT 4 Africa

ASS

2 years

8600 0

Gaming 4 Africa

TOTAL PRODUCT COUNT: 1

TOTAL PRODUCT VALUE: 15600.0 AVERAGE PRODUCT VALUZ a 11933

Intez (1) to launch nenu or any other key to exis
The user must have the option to delete a product that has been saved. The user must first enter the product code to be deleted. Next, the user must confirm whether they

want to delete the product.

Q.1.10 The user must also have the ability to update specific details of the product. For

example, the user must first enter the product code and then confirm whether to

update the following product details:

Update the product warranty.

Update the product price.

Update the product stock level.

Please enter the product code to update: ASS Update the warranty? (y) Yes, (n) No n Opdate the product price? (y) Yes, (n) No y Enter the new price for EliteBook >> 14500 Update the stock level? (y) Yes, (n) No n Product details has been updated successfully!!!

Enter (1) to launch menu or any other key to exit

Ann, an accountant, reports that after turning on her new laptop, she received a message stating her IP address is already in use on the system. She tried going back to her old desktop, which she now only uses for email, but received the same message. As a Network expert, you checked the account and sees a comment that Ann requires a special network setup to connect to the banking software.


Explain what could be the cause of the message received by Ann, and how you would resolve the issue as a Network expert. Also, what “special network set-up” is required to connect to the Banking software.


Suppose that the input is 10 -6 12 -5 -4 0. What is the output of the following code?



int num;

int sum = 0;

cin >> num;

while (num != 0)

{

if (num>0)

sum = sum + num;

else

sum = sum - num;

cin >> num;

}

cout << ” Sum = ” << sum << endl;


Give an example of a nested conditional that can be modified to become a single conditional and show the equivalent single conditional

Give a strategy for avoiding nested conditionals .


Explain why devices on a network need addresses


LATEST TUTORIALS
APPROVED BY CLIENTS