Answer:
import java.util.Scanner;
public class AverageDemo
{
public static String getNumbers()
{
String numbers;
Scanner scn = new Scanner(System.in);
System.out.println("Enter five to ten numbers all on one line, separated by spaces: ");
numbers = scn.nextLine();
return numbers;
}
public static double calcAverage(String numbers)
{
String[] values = numbers.split(" ");
double total = 0;
for (int i = 0; i < values.length; i++)
{
total += Integer.parseInt(values[i]);
}
if (values.length == 0)
return 0.0;
else
return (total / values.length);
}
// Method definition of printResults: print the results
public static void printResults(String numbers, double average)
{
System.out.printf("\nThe average of the numbers %s is %.2f\n", numbers, average);
}
// main method
public static void main(String[] args)
{
// Call the methods
String numbers = getNumbers();
double average = calcAverage(numbers);
printResults(numbers, average);
}
}
Output:
Which computer can be used where there is no regular electricity?
Answer:
A mechanical computer
Explanation:
Created from gears and levers
How do you connect asp.Net mvc web application in visual studio 2013 to a database created in mysql query browser
Solution :
Asp.Net is a programming language of Microsoft. It stands for Active Server Pages. It was developed by the giant, Microsoft which provides and helps the programmers to build a dynamic web sites, services and applications.
Using the asp.Net we can create a web application which provides interface to the existing database.
Creating an ASP.NET web application :
-- We create a new project in the Visual Studio in the same solution or the new solution and then select asp.NET web app template.
-- Name this project as ContosoSite.
-- Click OK.
-- Now in the project window of a new asp.Net project window, we select the MVC template.
-- Clear the Host in Cloud option as of now as we can deploy the application to the cloud later on.
-- Click ok for creating the application.
Jeremiah wants to print an object from a database, and Marie wants to print a deport of her database.
Answer: both Jeremiah and Marie.
Explanation:
From the information given, while Jeremiah wants to print an object from a database, Marie wants to print a report of her database.
In this scenario, it should be noted that both Jeremiah and Marie can be able to select the information and print it since they both want to print and the action can be performed by each person.
Therefore, the correct option is B.
write an algorithm and draw a flowchart for switching off a machine after it has made 500 glass bottles. use an appropriate conditional statement for this
Answer:
The algorithm is as follows:
1. Start
2. bottles = 0
3. While bottles != 500
3.1 Create bottle
3.2 bottle = bottle + 1
4. Switch off machine
5. Stop
See attachment for flowchart
Explanation:
This begins the algorithm
1. Start
This initializes bottles to 0
2. bottles = 0
The loop is repeated until 500 bottles is created
3. While bottles != 500
This creates a new bottle
3.1 Create bottle
This increments the number of bottles by 1
3.2 bottle = bottle + 1
This switches of the machine after all bottles are created
4. Switch off machine
End algorithm
5. Stop
Helllppppppp plzzzzzzzz
Answer:
i help you
ife ifrt ksd
its a study meeting of girls i am also girl here we only study boy were not allowed because he disturb here we only study its safe meeting of girl
the contribution of Charles Babbage in the history of computer
You install Windows 10 on a new computer. You update the video card driver and restart the computer. When you start the computer, the screen flickers and then goes blank. You restart the computer and receive the same result. You need to configure the video card driver. What should you do first
3. Remove the screws holding the GPU in on the rear bracket. ...
4. Unlock the PCI-e slot clip.
5. Remove the GPU by lightly pulling on the card.
6. Hover the GPU over PCI-e slot.
7. Push down on the GPU to slide the connector into the slot.
8. Ensure the secure lock clicks into place.
9. Screw the rear bracket down to secure the card to the chassis.
10. Connect any required PSU cables.
11. Reattach the side panel,
Now, all you need to do is to plug in the display connectors on the rear of the case, whether they're DisplayPort, HDMI, DVI, or VGA. After that, hit the PSU power switch and boot up Windows. If the PC does not turn on or no signals get sent to the monitor, we'll need to double-check that all cables are connected correctly (both inside and on the rear of the PC), and the GPU is seated properly in the PCIe slot.A user informs you that he or she never deletes any files he or she creates. How might this affect the operating system? It will cause the operating system to crash. It will cause the operating system to upgrade. It will cause the operating system to run faster. It will cause the operating system to run slower.
Answer:
Depending on the amount of files there are, the operating system will run slower because these files take up space on the hard drive, slowing it down.
Explanation:
express in Qbasic assignment statement
[tex]v = \ \sqrt{t} ^{2} - 4s \div {d}^{4} [/tex]
[tex]K = {8}{x} ^{3} - {2}{y}^{ 6} \div {5}{d}+ {e}^{4} [/tex]
Answer:
v = sqr(t^(1/2)) - 4 * s / d^4
K = 8 * x^3 - 2 * y^6 / 5 * d + e^4
Explanation:
Given
[tex]v = \ \sqrt{t} ^{2} - 4s \div {d}^{4}[/tex]
[tex]K = {8}{x}^{3} - {2}{y}^{ 6} \div {5}{d}+ {e}^{4}[/tex]
Required
The equivalent in Q Basic
To solve this, we use the following rules:
+ , - and * are written as + , - and *
[tex]\div[/tex] is written as /
^ stands for raise to power
SQR is used for square
^(1/2) stands for square root.
So, the equivalents of the above statements are:
v = SQR(t^(1/2)) - 4 * s / d^4
K = 8 * x^3 - 2 * y^6 / 5 * d + e^4
Shelby wants to move “ExpirationDate” to the top of the datasheet. What should she do?
A finite set of values along with set of rules for permissible operations is called ______
Data type
Class
Methods
Answer(data type) is your answer
how do you underline the selected text?
Select the text that you want to underline. Tip: You can also use the keyboard shortcut Ctrl+D. Use the Underline style drop-down list to select an underline style. Use the Underline color drop-down list to change the color of the line.
The number of swappings needed to sort the number 8, 22, 7, 9, 31 in ascending order, using bubble sort is
Answer:
3
Explanation:
swap the 7 with the 22
swap the 7 with the 8
swap the 9 with the 22
What is a possible explanation for the issue described below? A user reports that ever since she or he began creating animations, graphics, and video clips for the company’s Web site on her or his computer, the computer has begun running slower, especially when performing the graphics functions. The computer needs an increase in VRAM. The computer needs an increase in SRAM. The computer needs an increase in SIMM. The computer needs an increase in RIMM.
Answer:
The computer needs an increase in VRAM
It is A
Type the correct answer in each box. Spell all words correctly.
Digital artist Frank is discussing how to enhance scanned or photographed images. Complete the following sentences while keeping in mind the topic of discussion.
You can rework or enhance scanned or photographed images using photo editing and illustration software or by using a digital____.
The device has a_____surface on which you can draw images, graphics, and animations.
Answer:
1. Tablet
2. Flat
Explanation:
Why should a user preview the document before printing?
Answer:
..........
Explanation:
.................sorry i dont know
Your disaster recovery plan calls for backup media to be stored at a different location. The location is a safe deposit box at the local bank. Because of this, the disaster recovery plan specifies that you choose a method that uses the least amount of backup media, but also allows you to quickly back up and restore files. Which backup strategy would BEST meet the disaster recovery plan
Answer:
Perform a full backup once per week and a differential backup the other days of the week.
which scheduling algorithm allocate the CPU firt to the process that request the CPU first, (a) first come first serve,(b) shortest job scheduling , (c) priority scheduling , (d) round robin scheduling
Answer:
is correct answer
(a)first come first serve
Explanation:
Encryption is a process
i. To hide the massage
ii. To decipher the massage
iii. To delete the massage
iv. None of them
Answer:
answer is i
Explanation:
jjgjnyjghjhkgukhi
Answer:
Encryption is a process by which we can conceal the original message (effectively hiding it)
Explanation:
We typically apply some kind of algorithm to encrypt a message. By doing this we are effectively hiding the original contents of the message so only the people with the appropriate secret key or knowledge of the algorithm can decipher it.
CLS
N = 1
FOR J = 1 TO 5
PRINT N
N = 10*N+1
NEXT J
END
Answer:
1
11
111
1111
11111
Explanation:
Given
The above QBasic code
Required
The output
The iteration on the third line is repeated 5 times; i.e. for values of j from 1 to 5.
In each iteration, the value of N is printed and the next value is calculated.
Initially, the value of N is 1 ---- on line 2
So, 1 is printed first. The next value of N is as follows:
[tex]N = 10 * N + 1[/tex] --- we keep replacing N (on the right-hand side) with current N value.
So, we have:
[tex]N = 10 * 1 + 1 =11[/tex]
[tex]N = 10 * 11 + 1 = 111[/tex]
[tex]N =10 *111+1 = 1111[/tex]
[tex]N =10 *1111+1 = 11111[/tex]
what is the georgia connections academy administrative password? i want to install something.
Answer:
ICL has world-class customized accredited curriculum of over 75 subjects & 1 on 1 support. ICL students compete at the highest level, perform on Broadway & excel in entrepreneurship. Customize Curriculum. Cambridge Style Seminars.
You want to make sure that a set of servers only accepts traffic for specific network services. You have verified that the servers are only running the necessary services, but you also want to make sure that the servers do not accept packets sent to those services. Which tool should you use
Answer:
Port scanner.
Explanation:
A server can be defined as a specialized computer system that provides specific services for its clients on request. An example is a web server.
A web server is a type of computer that run websites and distribute web pages as they requested over the internet by end users (clients). When an end user request for a website by adding or typing the uniform resource locator (URL) on the address bar of a web browser, a request is sent to the internet to view the corresponding web pages (website) associated with that particular address.
In this scenario, the tool you should use is a port scanner because it would scan all packets that are sent or received by the server i.e all packets that are being transmitted to and from the server.
Angelina has added page numbers to her report, but all of the pages are labeled "Page 1” at the bottom. What caused this issue?
She typed “Page 1” in the footer.
She added a header instead of a footer.
She did not create a numbered list in her footer.
She forgot to click the Continue Numbering option.
Answer:
She typed "Page 1" in the footer.
Explanation:
This occured because the footer only repeats the same message across the footers unless you enable page numbering.
Hope this helps!
Your organization uses the following tape rotation strategy for its backup tapes: The first set of tapes is used for daily backups. At the end of each week, the latest daily backup tape is promoted to the weekly backup tape. At the end of each month, one of the weekly backup tapes is promoted to the monthly backup tape. What kind of backup tape rotation strategy is being used
Answer:
- Grandfather
Explanation:
In the given scenario, the 'grandfather backup rotation strategy' is employed to have the backup of the audiotape files. This is because the entire process is segregated into three distinct sections; daily backup that keeps the track of all the files recorded every day. It is followed by weekly storage of the audio files after the week wraps up in order to save it for future usage. Lastly, 'monthly' media is backed up in order to ensure that no data is left to be backed up that might be required later. This promotes a quicker, easier, yet complete strategy for backing up the desired data files in the systems. Hence, 'grandfather-son-rotation strategy' is the correct answer.
ou need to implement a wireless network link between two buildings on a college campus. A wired network has already been implemented within each building. The buildings are 100 meters apart. Which type of wireless antenna should you use on each side of the link
Answer:
High-gain and directional wireless antenna.
Explanation:
WiFi can be defined as a wireless local area network that allows network devices such as access points (APs), computers (both laptops and desktops), smartphones, smart televisions, etc., to communicate with each other wirelessly over a short-ranged network. It is a standard communication network that uses radio waves to establish a channel (medium) between multiple network devices.
This ultimately implies that, the network range or distance covered by WiFi is largely dependent on transmission power and frequency. Generally, the standard range or distance covered by WiFi is about 50 meters (160 feet).
Electromagnetic waves is a propagating medium used in all communications device to transmit data (messages) from the device of the sender to the device of the receiver through the use of an antenna.
In this scenario, you need to implement a wireless network link between two buildings on a college campus, which are 100 meters apart.
A high-gain antenna is an electromagnetic device that typically has a gain rating of 12dBi or sometimes higher. Also, a highly directional antenna can only receive radio signals from a specific direction and it compresses the radio waves that are being transmitted from a sender in to a very narrow beam.
Hence, the two (2) type of wireless antenna you should use on each side of the link are a high-gain antenna and a directional wireless antenna.
An end-user license agreement protects _____.
End User License Agreements are important for protecting the rights of the business owner/licensor and critical for setting the rules of use and managing the expectations of the end-user.
Answer: both the owner and the purchaser of the software
Explanation:
how is internet connection made possible.
Answer:
To connect to the Internet and other computers on a network, a computer must have a NIC (network interface card) installed. A network cable plugged into the NIC on one end and plugged into a cable modem, DSL modem, router, or switch can allow a computer to access the Internet and connect to other computers.
is the process of modifying something to make it fit certain criteria.
Answer:
Design Process
The information included in a résumé should always relate to the job objective; if it isn’t related, it shouldn’t be included.
Answer:
True.
Explanation:
A resume (curriculum vitae) can be defined as a short text-based document that a job applicant use to briefly outline his or her qualifications, abillities and accomplishments, haven completed and obtained an academic certificate. Thus, it is used to briefly outline a person's qualifications, abillities, skills set, and accomplishments, after completing and obtaining an academic certificate such as a bachelor's degree, master's degree, etc.
Generally, all job applicants are required to have a resume (curriculum vitae). This brief and concise document is always requested by human resource managers during the job application process.
Furthermore, the primary way to make a resume persuasive (to convince or inform an action in the minds of the readers - potential employers) is by customizing it to fit each company and position.
Hence, the information included in a résumé should always relate to the job objective; if it isn’t related, it shouldn’t be included.
This ultimately implies that, job applicants are expected to tailor their resume to fit or match the position that is advertised by a company's human resources department.
Câu 1: Đất trồng là môi trường?
A. Cung cấp chất dinh dưỡng, ôxy
B. Giúp cây đứng vững
C. Cung cấp chất dinh dưỡng, ôxy, nước
D. Câu B và C
Answer:
D
Explanation: