Write a program that asks the user to type 5 integers
and writes the average of the 5 integers. This
program can use only 2 variables.

Answers

Answer 1

import Java.util*

public class Average{
public static void main(String [] args){

int sum = 0;
int numbers = 0;

for(int i = 0; i < 5; i++){
Scanner sc = new Scanner(System.in);
System.out.println(“Please enter your integers: “);
numbers = sc.nextInt();

sum += numbers;
}
System.out.println(“The average is: “ + sum/5)”
}
}

Related Questions

Write an application that reads the file created by the WriteCustomerList application and displays the records. Save the file as DisplaySavedCustomerList.java.

Answers

Answer:

hi

Explanation:

Discussion 5
Kris Allen runs a pet daycare center. She needs to keep track of contact information for her customers, their animals, the services provided (such as walking and grooming), and the staff who are assigned to care for them. She also must send out invoices for payment each month. What features of spreadsheets and/or database software might she use to facilitate her business?

Answers

The features of spreadsheets and/or database software that she can use to facilitate her business are;

Rows and columns in spreadsheet's can make her information to be neatly organized.The use of Formulas and functions. Data filtering Accounting.Analytics, etc.

Why does business use database software?

Businesses can known to use database software to make a good and well manage data output. They also use it to work with their data.

Note that in almost all kinds of businesses, there is the use database software just to keep a track of contacts, addresses, payrolls and other  kind of functions to is linked to business and customers.

Learn more about database software  from

https://brainly.com/question/1022352

The quickest way to change a word is to double
click it.
Select the correct answer
O True
False

Answers

Answer:

I don't think that the fastest way to change a word is to double click it. Even though it highlights it super fast, then you just press backspace once, it doesn't compare to the one where you press the "ctrl" and "backspace" key at the same time, and it makes the whole entire word disappear in the blink of an eye. But, I am not sure if anybody really knows about this trick. So, it is 50/50.

Explanation:

:)

the difference between tool bar and status bar​

Answers

Answer:

A toolbar offers easier access to tasks typically conducted within the application whereas in the status bar it is displayed at the lower side of the web browser screens and other application windows.

Explanation:

Suppose that you have a computer with a memory unit of 24 bits per word. In this
computer, the assembly program’s instruction set consists of 198 different operations.
All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory.
1. How many bits are needed for the opcode?
2. How many bits are left for the address part of the instruction?
3. How many additional instructions could be added to this instruction set without
exceeding the assigned number of bits? Discuss and show your calculations.
4. What is the largest unsigned binary number that the address can hold?

Answers

Answer:

a )   The amount of bits required for the opcode

 8 bits

2^8=  256        

 256>198

 We get the next lower number, which is 2^7 = 128 bits, because it is greater than 198. As a result, the operation code necessitates 8 bits.

b)   The number of bits reserved for the instruction's address.

 16 bits

 24-8  =  16

c)  

 65536

2^16  =  65536

 Maximum number =  65535

  2^15 = 32768-1

 =  32767

Explanation:

Select the correct answer.
What should every HTML document begin with?
A. the element
B.the declaration
C. the element
D.the element

Answers

Answer:

B

Explanation:

Every HTML document must begin with a declaration of what the document is going to be about.

The ages of ELEVEN(11) students on Environmental Awareness Camp are:
12 9 11 7 10 10 9 9 8 9 11
Find the mean and standard deviation
A. Mean = 9.545; Standard deviation = 1.440
B. Mean = 9.545; Standard deviation = 2.073
C. Mean = 10.5; Standard deviation = 1.440
D. Mean = 10.5; Standard deviation = 2.073

Answers

Answer:

Gonna be smart. This took me a long time.

Explanation:

Result Standard Deviation, σ: 1.3726971700492

Count, N: 11

Sum, Σx: 105

Mean, μ: 9.5454545454545

Variance, σ2:  1.8842975206612

Steps

σ2 =  Σ(xi - μ)2

N=  (12 - 9.5454545454545)2 + ... + (11 - 9.5454545454545)2

11

=  

20.727272727273

11

=  1.8842975206612

σ =  √1.8842975206612

=  1.3726971700492

In simple words. A.

For optimum computer performance, what features and or characteristics should a
computer possess to efficiently copy any material from an external device?

Answers

A computer should be compactible and possess a good cache memory size, so as to efficiently copy any material from an external device.

What is a computer?

A computer refers to an electronic device that is designed and developed to receive data in its raw form as an input and processes these data into an output (information) that could be used by an end user.

For optimum computer performance, some of the features and or characteristics that a computer should possess, so as to efficiently copy any material from an external device (hard-disk drive) are:

CompatibilityCache memory size.The computer should have a USB 3.0 port.

Read more on computer here: brainly.com/question/959479

Psuedo code and flow charts

Answers

Answer:

pseudo is an informal high level description of the operating principle of an algorithm while a flow chart is a diagrammatic representation that illustrates a solution model to a given problem.

Write a C# program to Trim the Given String.
Write a C# program to Convert Upper case to Lower Case.
In C# programming

Answers

Answer:

Step by step explanation:

Draw a rectangle, give its perimeter and Area
Ask the user for a length and width of a rectangle.
Draw the rectangle
find and show the perimeter
find and show the Area

Answers

I am assuming this is in python, so I will use comments to explain each step

l=int(input('What is the length of the rectangle')

w=int(input('What is the width of the rectangle')

#here use whatever graphics code required to draw the rectangle

#will probably be similar to rect=Rectangle(l,w)

print('Perimeter is' +(2*l+2*w))

print('Area is' +(l*w))

How to add up multiple user inputs for example: If i ask the user How many numbers do you want to add? they say 5 then i out put Enter 5 numbers: how can i get it to add up those 5 numbers that were input.In JAVA

Answers

Answer:

import java.util.Scanner;

class Main {

 public static void main(String[] args) {

   Scanner scanner = new Scanner(System.in);

   System.out.println("How many numbers do you want to add?");

   int numberOfNumbers = scanner.nextInt();

   int arrayNumbers[] = new int[numberOfNumbers];

   System.out.println("Enter " + numberOfNumbers + " numbers:\n");

   for(int i = 0; i < numberOfNumbers; i++){

     int addToArray = scanner.nextInt();

     arrayNumbers[i] = addToArray;

   }

   int sum = 0;

   for(int j = 0; j < arrayNumbers.length; j++){

     sum+=arrayNumbers[j];

   }

   System.out.println("Sum: " + sum);

 }

}

Explanation:

how bridges are built over water

Answers

It’s all depending on what method

A program checks to see if the input is valid using
numbers
operators
logic
output​

Answers

Use the knowledge in computational language in python program checks to see if the input is output​.

How to define input in Python?

In Python, we do this using the input() function, which is literally 'input' in English. The input() function receives as a parameter a string that will be shown as an aid to the user, usually informing him what kind of data the program is expecting to receive.

So in an easier way we have that the code is:

def isNumber(x):

   if type(x) == int:

        return True

   else:

        return False

input1 = 122

input2 = '122'

if isNumber(input1):

   print("Integer")

else:

   print("String")

if isNumber(input2):

   print("Integer")

else:

   print("String")

See more about python at brainly.com/question/18502436

write a C++ program to print name, age, class, school​

Answers

Answer:

#include <iostream>

using namespace std;

int main()

{

   string name;

   string age;

   string Nameclass;

   string school;

   cout<<"What is your name?\n";

   cin>>name;

   cout<<"What is your age?\n";

   cin>>age;

   cout<<"What is your class?\n";

   cin>>Nameclass;

   cout<<"What is your school?\n";

   cin>>school;

   cout<<"Name: " + name;

   cout<<"\nAge: " + age;

   cout<<"\nClass: " + Nameclass;

   cout<<"\nSchool: " + school;

   return 0;

}

Explanation:

Should new technology be created if there is a chance it will be misused?

Answers

Answer:

yes

Explanation:

sometime great things can happen out of terrible things.

Answer:

No, because if there is a chance that it will be misused, then it should not be created. Also, we are not told exactly how it may be misused - it could have catastrophic impacts, and cause harm.  

Explanation:

Which layer abstracts away the need for any other layers to care about what hardware is in use?

Answers

Answer:

data link layer

Explanation:

you answer is data link layer

What is the difference between conceptual architecture view and module architecture view?

Answers

Answer:

The conceptual architecture view provides a high-level map of how the system performs what it's meant to do, and the module architecture view demonstrates how the software's major parts are translated to modules and subsystems.

Explanation:

True or False: F Layout is better for users who read left to right, but layout is better for users who read right to left.

Answers

Answer:

false

Explanation:

it depends on the user

Does anyone know how to get past this part in Lego Harry Potter it’s the one right after Dobby in year 2? I’m so stuck!!!

Answers

thats a nice game. i dont know how to play it. how are you doing?

do you think film is a great media in exposing information?​

Answers

not really everything don’t need to be on the internet

Answer:I think film is a great media in exposing information

Explanation:Films are great for exposing information for many reasons. Films are long, which increases the chance the watcher will remember, also it makes the watcher more involved and more interactive

What rules should we have about cell phone
the classroom/school?.

THIS IS AN 5 PARAGRAPH ESSAY HELP ME

Answers

Introduction: There are many rules schools should follow when it comes to cell phone use during school hours. Technology can be very distracting and durning school is when kids need to pay attention. Most people see cell phone rules un fair or bad, however it's not like that. The school just wants what's best for the students and so they can learn, which will ultimately help them on later in life.

Body paragraphs (wont write the rest of the paragraphs but heres some ideas) Only using the phone when needed like if it's an emergency, phones have to stay on silent to not disrupt others, during free period you can choose whether to be on your phone

then you write your conclusion based on what you wrote

Most of the Info you would need:

-If we don't allow cellphones many school issues would be solved.

-There is a mistake if they use cellphone, but its a great mistake if they misuse.

- Phones in classes just defeat the point of going to school- for learning.

- There are benefits, yes, but there is no doubt that the privilege will be abused.

-Cell phones are only good for distracting the students from the education that they are at school to obtain.

- we think it is one of the best ways to get distracted during class to use your cellphone.

-Cell phones create massive and on going classroom management issues for teachers.

-There is no need for allowing students to use mobile phones in schools. Ultimately they are not using mobiles for the calling purpose. Thus it is a perfect no from our side.

Please have a good day <3

state the name of the following computer components​

Answers

Answer:

Memory.

Hard Drive or Solid State Drive.

Video card.

Motherboard.

Processor.

Power Supply.

Monitor.

Keyboard and Mouse.

Explanation:

Memory
Hard Drive or Solid State Drive
Video card
Motherboard
Processor
Power Supply
Monitor
Keyboard and Mouse
Optical Drive DVD/RW
Ethernet or Wireless card


Central Processing Unit (Cpu)
Random Access Memory (Ram)
Motherboard
Solid State Drive (Ssd)
Three
Games User Interface
Floppy Drive
Conclusion
The Motherboard
Usb Ports
Hardware And Software
Disk Drive
Optical Disk Storage
Scsi
Laser Printer
Processing Devices
Keyboard And Mouse
Lcd
Internal
External
Stylus
Code
Non Volatile Memory
Utility Software

Complete the sentence.
For self-driving cars, both the programmers of the software and governments who regulate them must adhere to
intellectual property laws
ethical principles
noncompete agreements
- to safeguard that the software that controls the car is capable of making life-or-death

Answers

Answer:

[ C ]  governments who regulate the car industry

[ D ]  the programmers who create the software that control the car

Proof:

Governments who regulate the car industry, the programmers who create the software that control the car are the complete sentence.

What is car industry?

Car industry is the place where the manufacturing of the cars and automobile parts are placed. Car industry  do manufacturing work for the selling purpose. The company may be directly or indirectly engage in the selling industry.

Thus, sentences are completed.

For more details about car industry, click here:

https://brainly.com/question/1139792

#SPJ2

Thirty percent of a magazine's subscribers are female. A random sample of 50 subscribers Answer the following questions using Excel: (using standart devision of 0.0648)
a. What is the probability that the proportion of females from this sample is at most 0.25
b. What is the probability that the proportion of females from this sample is between 0.22 and 0.28
c. What is the probability that the proportion of females from this sample is within 0.03 of the population proportion?

Answers

Based on the mean of the subscribers, the sample size, and the standard deviation, the probability of females being at most 0.25 is 0.2202.

The probability that they are between 0.22 and 0.28 is 0.2703.

The probability that they are within 0.03 of the population proportion is 0.3566.

What is the probability that they are at most 0.25?

Using Excel, we shall assume that the distribution is normally distributed.

We can therefore use the NORM.DIST function:


=NORM.DIST(0.25,0.3,0.0648,TRUE)

= 0.2202

What is the probability that they are between 0.22 and 0.28?

=NORM.DIST(0.28,0.3,0.0648,TRUE) - NORM.DIST(0.22,0.3,0.0648,TRUE)

= 0.2703

What is the probability that they are within 0.03 of the population proportion?

X high = 0.30 + 0.03

= 0.33

X low = 0.30 - 0.03

= 0.27

= NORM.DIST(0.33,0.3,0.0648,TRUE) - NORM.DIST(0.27,0.3,0.0648,TRUE)

= 0.3566.

Find out more on probability at https://brainly.com/question/1846009.

Why do Linux administrators prefer to give sudo access to application teams instead of letting them su to root?

Answers

Answer:

Explanation:

some distros like ubuntu do not even allow su to switch to root. furthermore the su to root is dangerous because the user becomes the all-powerful administrative account, so no warnings are issued if the application team user tries to do something system-breaking.

Take any software or Application that you have recently purchased, this can be a video game or any other application helping you to complete you educational objectives or professional purposes. Go through about the copyright, license policies [you will find this information on the leaflet or on the packaging] and answer the following questions]
Can you make copies? What does the license agreement say about the number of copies you can make? Explain in detail [ 2Marks]
Does it specify penalties for making unauthorized copies if yes give the brief detail on that?
[1 Mark]
Do you consider the license agreement to be clearly stated? Reasonable? Explain with two reasons. [ 2 Marks]

Answers

A good product should have copyright protection which prevents others from using the product without permission.

Some products specify the penalties which are given to a person who makes unauthorized copies of their product and this is done to clearly educate to avoid ignorance claims.

A good product should have clear lettering which are legible and can be easily read, and should also have reasonable copyright protection.

What is Copyright?

This refers to the licensing which is done for a product and is also legally backed which prevents a person from illegally using or redistributing the work of a creator without their explicit consent.

Read more about copyright infringement here:
https://brainly.com/question/1078532

You ran your email by a few colleagues, and they think it is perfect for your audience – professional, technical, and informative. Your email is ready to send out, so you schedule it for 8AM the next day to reach customers’ inboxes as they start their day. How should you include the email addresses?

Answers

You should include in the email addresses by CC all recipients.

What does it mean to CC recipients?

The CC abbreviation is a term that stands for “carbon copy.”

The CC recipients is known to get or receive also the same copy of the email and any kinds of other “Reply All” responses that one can see in the thread. Note that all recipients of the email will also see who has been given the CC' message.

See options below

-CC all recipients.

-BCC all recipients

Learn more about email from

https://brainly.com/question/14236855

a. The insert, Delete, and Format options are present in the
group on the Home tab.

Answers

Answer:

False

Explanation:

They are on the keyboard.

Given the string “supercalifragilisticexpialidocious”.
1. What is the length of the string i.e. write the script to find the length? (2 points)
2. Find the sub-string of first 5 positions and the other sub-string with last 5 positions. (4 points)
3. Find how many times “i” occurs in this word in python

Answers

The string and the three instructions is an illustration of the python strings

The length of the string

The following instruction calculates the length of the string using the Python script:

len("supercalifragilisticexpialidocious")

The returned value of the above instruction is: 34

The substrings

The following instruction calculates the sub-string of first 5 positions and the other sub-string with last 5 positions

myStr[:5]+myStr[-5:]

The returned string of the above instruction is: "supercious"

The number of occurrence of i

The following instruction calculates the occurrences of i in the string

"supercalifragilisticexpialidocious".count("i")

The returned value of the above instruction is: 7

Read more about python strings at:

https://brainly.com/question/13795586

Other Questions
a titration experiment can be used to determine the Determine which reaction has the highest activation energy.A. Burning charcoalB. Melting iceC. Combusting gasolineD. Reacting metal and acid The area of a rectangular field is 1.1210^45 square feet. If the length of the field is 710^11 feet, and the width of the field can be written as 1.610x feet, what is the value of x? pls answer carefully Which of the following is NOT a power that a state governor has?Power to supervise state employeesPower to fire workers in private businessesPower of the budgetPower to make appointmentsOd HELP SOMEONE please review the image :D I looked down the future today" is an example of Analyze how Alexs actions in paragraphs 3 and 4 develop the theme of the text. Use at least one example from the text to support your answer. Explain how the textual evidence supports your answer Brainliest if correct How much does it cost to open a chick-fil-a franchise?. Why does the author choose to begin Blue Bird's story in paragraph 2 with so cruelly ended in a day? Donetta is investing $6000 in a stock fund that is offering a constant annual interest of 5%. can you please help with this please. Write a haiku with a theme about genetics and heredity. Factor 5x2y + 22xy 15y. **PLS HELP ILL GIVE BRAINLIEST** ExploreFill in each blank with a number or expression such that each row and column has the same sum. How does Annie escape the orphanage at the beginning of the play when she discovers "Sandy"?This is from the movie Annie An equation is shown below: 2(7x 3) = 9 Which of the following correctly shows the beginning steps to solve this equation? (4 points) A 100g block of pine wood has a volume of 300 cm3. Would this block float on water (density of water is 1.0 g/cm3)? If interstellar gas has a density of 1 atom/cm3, how big a volume of material must be used to make a star with the mass of the Sun