Display the sum and the average of the 3 values

Assignment Help Basic Computer Science
Reference no: EM131050024

Write a java program to accept 3 integer values from keyboard, display the sum and the average of the 3 values.

Run your program by DOS first then by netBeans IDE.

Program specs:

(1) When program starts, prompt the user with this program heading and instructions:

This program will sum up three integer values and calculate the average

You will be asked to input these values separately, the program will then:

(1) Calculate the total

(2) Calculate the average

(3) Display the values of total and average

Use ONLY one statement for the above requirement.

(2) The integer values can be stored by 4 bytes of memory

(3) The calculated results are displayed by ONE statement as follow:

The sum of integer value 1: xxxx
value 2: xxxx
value 3: xxxx
---------------------------------
Total: xxxxx
Average: xxxx.xx (2 decimal places)

Reference no: EM131050024

Questions Cloud

What is the minimum number of doctors : What is the minimum number of doctors needed to meet the administrator's objective? (with the minimum number of doctors working all together)
Write a four pages research of a story called the pedestrian : Write a four pages research of a story called The Pedestrian. Begin with a quote in some of the paragraphs. Clear Thesis statment. Make a refrence to the quote.
How was the viewing experience different : How did you experience reading the story? How was the viewing experience different? What did you notice in one that you missed in the other?
Demand versus the utilization of proper seasonal forecasting : Process of how managers checking scanner records to learn past demand versus the utilization of proper seasonal forecasting.
Display the sum and the average of the 3 values : Write a java program to accept 3 integer values from keyboard, display the sum and the average of the 3 values.
Sales and operations planning : How long should a company look at its sales, tomorrow only or a year out? What are the benefits to sales and operations planning? What elements of financial planning need to be understood?
How company utilizes big data to enhance productivity : ITECH7407- REAL-TIME ANALYTICS TEAM ASSIGNMENT. In this track, write a research report of about 3000 words highlighting how a particular large company utilizes Big Data to enhance productivity and efficiency. The report should be well researched an..
Find three current articles on the single topic : In a short concluding section, write a general summary of your literature search of the three articles, specifying where they agree and disagree and how your thinking has been altered, or supported, after studying the three articles.
Create a procedure namedfindthrees that returns 1 : Create a procedure namedFindThrees that returns 1 if an array has three consecutive values of 3 somewhere in the array.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Share your ideas and thoughts

When a hacker attacks a system, his primary concern is to erase any kind of digital footprints, which makes him invisible. The data recovery completely depends upon the intensity of the attack. With modern algorithms and data recovery techniques, ..

  Conditions and requirements of application security

This seminal publication outlines a set of basic principles that define a logical way to classify and respond to threat. It also describes the critical things you should consider while building software. These underlying principles dictate the con..

  Pseudocode description of a function that uses only d and q

Suppose you have a deque D containing the numbers (1,2,3,4,5,6,7,8), in this order. Suppose further that you have an initially empty queue Q. Give a pseudo-code description of a function that uses only D and Q (and no other variables or objects) and ..

  Derive the best value for grain-size to maximize parallelism

Suppose that we set grain-size = 1. What is the parallelism of this implementation?

  Describe the complexities of auditing a cloud computing

1. explain the role auditing plays in the context of achieving trustworthy systems. 2. explain the complexities of

  Describe why are pirates difficult to eliminate

Why does piracy exist in past and present? Describe why are (were) pirates difficult to eliminate? What to you believe about pirates as moder-day Robin Hoods?

  Desperate need of an automated test scoring system

First ask for the number of questions in the testThen asks for the correct answers for each question. Note that multiple choice tests and questions will have answers from A to D. Ask for the number of students and process each student by asking for t..

  Network security assessment

You have been recently hired as a network security analyst for a small accounting firm. The firm is realizing that they need help to secure their network and customer's data. With your background and skills, they are looking to you to provide guid..

  Create a class called card that represents a playing card

Create a class called Card that represents a playing card. A Card has two fields: displayValue and suit. A card should be able to display itself.

  Write the code to compute s on the basis of these values

In physics, a common useful equation for finding the position s of a body in linear motion at a given time t, based on its initial position s0, initial velocity v0, and rate of acceleration a, is the following:

  Research the difference between static and dynamic ram

Research the difference between static and dynamic RAM. What are the uses of each? How do they store memory. What are the differences between the ways they access data. Create a table comparing static and dynamic RAM

  Create a context diagram for the new billing system

Create a Context Diagram and a Diagram 0 for the new billing and payment system.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd