please help me with this coding assignment :)
What values are stored in nums after the following code segment has been executed?

int[] nums = {50, 100, 150, 200, 250};
for (int n : nums)
{
n = n / nums[0];
}
[1, 2, 3, 4, 5]
[1, 1, 1, 1, 1]
[1, 100, 150, 200, 250]
[50, 100, 150, 200, 250]

Answers

Answer 1

Answer:

D. [50, 100, 150, 200, 250]

Explanation:

This is a trick question because the integer n is only a counter and does not affect the array nums. To change the actual array it would have to say...nums[n] = n/nums[0];


Related Questions

HELP ASAP

Certain programs are designed to analyze electronic scans of documents such as receipts, business cards and recipes, and allow information from these paper copies to be represented electronically. In order for such a program to understand the difference between, for example, a zip code and a phone number or between the price of an item and the total bill for a shopping trip, certain rules must be put into place. If a program was trying to identify which part of a receipt is the date of purchase, which of the follow probably would NOT be included as part of these rules?

A. Locate any sets of digits with the following format -- _ _ / _ _/ _ _ -- where the underscores represent numerical values.

B.Identify if there are any month names on the receipt (January, February, March, etc…).

C. Search for the numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 or 12 anywhere on the receipt.

D. Look for the following format of numbers -- 19_ _ or 20_ _ -- where the underscores represent numerical values.

Answers

Answer:

C. Search for the numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 or 12 anywhere on the receipt.

Explanation:

A blank has a value that determines the value of another quantity. A)Dependent variable B) Independent variable C) Equation​

Answers

Answer:

B

Explanation:

(Sorry if it's wrong)

Answer:

Independent  Variable

1a) Design an algorithm and draw a flowchart to display a set of even
numbers between 2 and 98 inclusive with their squares,
square roots, cubes and reciprocals.​

Answers

hi guys, my program displays a set of even numbers ranging from 1 to 100 with their square roots, cubes and reciprocals. pls i need a source code

Which is an advantage of using a flat file instead of a relational database?
A flat file is easier to set up.
It is easier to assign foreign keys to a flat file.
A flat file reduces storage of redundant data.
A flat file reduces storage of irrelevant data.

Answers

Answer:

An advantage of using a Flat file instead of a relational database is;

A Flat file is easier to set up

Explanation:

The Flat file database is a database developed by IBM and it is the primary type of database for storing data in text files such as in Microsoft Excel

Individual database records are stored in a line of plain text and are separated from other records by delimiters including commas and tabs

The advantages of a Flat file database are;

1) The records of the database are stored in a single place

2) A Flat file is easier to set up with Microsoft Excel or other office applications

3) The Flat file database is easier to comprehend and understand

4) The records of the database can be simply stored

5) Simple criteria can be used for viewing or extracting data from a Flat file database

Answer:

b

Explanation:

underfloor, cellular concrete floor, cellular metal floor, surface, wireway and busway are all kind of
A. raceways
B. conduit
C. wiring
D.NEC rules

Answers

Answer:

Option C

Explanation:

Underfloor, cellular concrete floor, cellular metal floor, surface, wireway and busway are all kind of wiring.

In these wiring method, a conduit body or a box is installed at  conductor splice, outlet, switch, junction, termination or pull point.

Hence, option C is correct

Are computer software programs an example of land, labor or capital?

Answers

Answer:

Labor

Explanation:

Two workers in a farms will plucking a strawberry.
30% of the collection belongs to the owner.
40% of strawberry will devide by each workers.
Balanced will make a drinking juice.​

Answers

Answer:

20%

Explanation:

20% only I know the answer cus I already did it it’s 20% and yeah

What makes a source credible?

It is found online.
It contains bias.
It is believable or trustworthy.
It supports multiple perspectives.

Answers

Answer:

C It is believable or trust worthy

Answer:

It's C: It is believable or trustworthy.

Explanation:

I got it right.

Jack is an accountant. He can’t access the spreadsheet software that is installed on the server. What should Jack do? Jack should ____ the server and check to see if it has crashed.

(this is for those who need to get this question right) the correct answer is that he should use the ping command so it goes "Jack should ping the server and check to see if it has crashed

Answers

Answer:

hack

Explanation:

Answer:

ping

Explanation:

Which list method allows elements in a sequence to be removed and added at either end of the structure?

Answers

Answer:

Explanation:

Explanation: Queue is also an abstract data type or a linear data structure, just like stack data structure, in which the first element is inserted from one end called the REAR(also called tail), and the removal of existing element takes place from the other end called as FRONT(also called head).

Answer: Stack

Explanation:

8.3 code practice edhesive PLEASE HELP AND HURRY
Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array.

14 36 31 -2 11 -6

Sample Run
[14, 36, 31, -2, 11, -6]

ALSO I DONT NEED A SUM I NEED AN ARRAY

Answers

Answer:

numbers = '14 36 31 -2 11 -6'

nums = numbers.split(' ')

for i in range(0, len(nums)):

  nums[i] = int(nums[i])

print(nums)

The program is an illustration of arrays and lists.

Arrays and lists are variables that are used to hold multiply values in one variable

The program in Python, where comments are used to explain each line is as follows:

#This gets input for the list of numbers

numbers = input()

#This splits the numbers into a list

numList = numbers.split(' ')

#This iterates through the list

for i in range(len(numList)):

   #This converts each element to an integer

   numList[i] = int(numList[i])

#This prints the list

print(numList)

Read more about Python lists at:

https://brainly.com/question/24941798

Write a switch statement that prints A to the screen for x values of 1 and 3, B for values 2 and 4, C for value 5, and D for all other values.

Answers

Answe x = 10.81&.!/‘as

Explanation:

Which of these completes the sentence? People interpret information ___________. Choose one.

Answers

Explanation:

mannejaondpsbma0jdjdhdj

Hhhhgtfw sn jbhhjmbfbnkgy

DOES THE GATEWAY NE56R41u have touch screen capabilities?

A.) Yes it does
B.) No it doesn't

Answers

Answer:

thats a good question

Explanation:

thats a good one

I don’t think sooooo

information in society

Answers

Answer:

Information Society is a term for a society in which the creation, distribution, and manipulation of information has become the most significant economic and cultural activity. An Information Society may be contrasted with societies in which the economic underpinning is primarily Industrial or Agrarian.

Contain functions that help you monitor and modify images​

Answers

Answer:

Palettes Palettes contain functions that help you monitor and modify images.

Explanation:

Use the drop-down menus to identify the roles that can be granted to a delegate in Outlook.
The
role grants read, create, and modify permissions.
The read-only permission is granted by the
role.
The
v role will allow the user to create new items.

Answers

Answer:

editor

reviewer

author

Explanation:

on edg

Answer:

editor

reviewer

author

Explanation:

Which areas of a business would most benefit from using the Workday platform?


Enterprise resource planning, supply chain, and inventory management


Human resources, compliance, recruiting, and finance


Private equity issuance and listing on a public exchange


Compliance, server machine administration, and anti-money laundering

Answers

Answer:

The first option would be the best I think

Explanation:

Enterprise resource planning, supply chain, and inventory management would most benefit from using the Workday platform. Thus, option A is correct.

What is a business?

A business is defined as an organization that does monetary transactions. It usually means that the product is being made manufactured, processed, or even repacked in a business. the sole reason to create money by exchanging goods or services with the purchaser or the buyer.

Every form of company, including small, medium, and large organizations, uses Workday's numerous capabilities. They are a cloud-based system and the software helps to create it internally and manage the resources to know when to have new products, and also it is made online managed. Therefore, option A is the correct option.

Learn more about the Workday platform, here:

https://brainly.com/question/21941429

#SPJ2

Which of the following is an example of how the respiratory system interacts with the circulatory system to excrete waste?

Answers

Answer:

The veins carry oxygen depleted blood away from body parts,  hence the color blue.

Explanation:

true or false you can create a. network with 2 computers?

Answers

Explanation:

true true jsjsdkdkskdkdksksksksk

Answer:

True :)

Explanation:

System.out.print(two.indexOf('r'));

Answers

What is this I can’t comprehend

Which type of loan is based on financial need

Answers

Answer:

Direct Subsidized Loans are based on financial need.

hope my ans helps

be sure to follow me

pls give brainlist to my answer

stay safe

have a good day

One governing factor when determining the minimum size of conduit to be used is the?


A. conductor fill

B. presence if water

C. location

Answers

One governing factor when determining the minimum size of conduit to be used is the location.

It’s always best to have a detailed script before recording.
True.
False.

Answers

Yes, this is very true! If you don’t it will be obvious

What are the challenges of Cyber Law???? Needed ASAP ​

Answers

Answer:

Explanation:

Few challenges that the technology space faces in cyber security are the following:

Digital Data Threat: Growing online transactions generate bigger incentives for cybercriminals. Besides, establishments looking to mine data—for instance, customer information, results of product surveys, and generic market information—create treasured intellectual property that is in itself an attractive target.

Supply Chain Inter-connection: The supply chains are increasingly interconnected. Companies are urging vendors and customers to join their networks. This makes a company’s security wall thin.

Hacking: This action is penetrating into someone’s system in unauthorized fashion to steal or destroy data, which has grown hundred folds in the past few years. The availability of information online makes it easier for even non-technical people to perform hacking.

Phishing: The easiest to execute and can produce the results with very little effort. It is the act of sending out Fake emails, text messages and create websites to look like they're from authentic companies.

The sun can be an excellent source of natural light.
True.
False.

Answers

Answer:

True

Explanation:

All of the natural light comes from the sun. The sun contains a huge amount of energy.

how can the use of ICT ​

Answers

Answer:

ICT allows students to monitor and manage their own learning, think critically and creatively, solve simulated real-world problems, work collaboratively, engage in ethical decision-making, and adopt a global perspective towards issues and idea.

I need help ASAP 66 points this is a lab in Testout For Microsoft access I have been at this for about an hour

Answers

Answer:

welp you have to umm look up Microsoft and you habe to reset the rask

Discussions
My Submissions
Java 8
Curious Shubham (100 Marks)
Draft save
1
2
3
4
There are 26 groups of people in Shubham's Company. At lunchtime, they all want to get some food to eat as soon as possible. All
the groups have made plan to get some food as soon as possible. According to the plan, every person of the group will share the
description of food he/she wants to eat so that all the group members will be able to order the food on the behalf of his/her group.
All the persons stand at various locations in the queue and whoever will get the food first, will distribute the food among all the
group.
But there is a weird procedure of getting the food from a queue. People having even indices form a new queue and process repeats
until only 1 person remains in the queue. He/she will able to order some food of his choice. Shubham and his friends are curious
about the group which will be able to get some food.
Input Format
The first line of input consists of the number of people present in the Queue, N.
The second line of input consists of a string that represents the group of each person who is standing in the queue.
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Constraints
1 The string consists of uppercase letters only.

Answers

Answer:

Explanation:

A,B,D

Examine the information in the URL below.

http://www.example/home/index.html

In the URL, what is the subdomain and what is the domain name?

A The subdomain is http:// and the domain name is .html.
B The subdomain is /home/ and the domain name is http://.
C The subdomain is www and the domain name is example.com.
D The subdomain is example.com and the domain name is www.

Answers

Answer:

B The subdomain is /home/ and the domain name is http://.

Explanation:

Answer:

The subdomain is /home/ and the domain name is http://.

Explanation:

Other Questions
5. I'd like a cheeseburger and fries, please. Rate: Exactly what makes the sentence more formal or informal? Which answer choice is a complete sentence?The primary function of the spleen is to filter blood; is also part of the immune system.The primary functions of the spleen are to filter blood and to serve as part of the immune system.The primary function of the spleen is to filter blood and is also part of the immune system.The primary function of the spleen is to filter blood it is also part of the immune system what is the simplified version of 4+5y-6y+y what is the present state of agriculture in Nepal write in short paragraph i need halp with this one 211m+16=4+611mm=find the sum to m A container has the following dimensions.120cm300cm430cm.How many litres of liquid can the box hold? Ava has a jewelry box in the shape of a pentagonal prism.6 in.The area of the base of Ava's jewelry box is 110 square inches and each edge of the pentagon is 8 inches. What is the surface areaof the jewelry box?OA. 220 square inches.240 square inchesOC460 square inchesOD660 square inches What is the connection between linear systems and linear functions?Explain. If 8.5 kilometers is about4 miles, about how manykilometers is 16 miles? I asked this question last time but the answer I got was wrong so can y'all help my this is due like in an hour and it's the last question (Re-Asking This Question, NO scam answers or LINKS. I will report.)Is the point (-5, -6) a solution of the inequality 3x - 2y > -4? EXPLAIN your answer.Please DO NOT say just yes, no, or I don't know. The acorn woodpecker ________ food for storage.A.will gather.B.is gathering.C.gathers.D.gathered.The ______ gather acorns in a granary.A.birds.B.bird's.C.birds'.D.birds's.Acorn woodpeckers _______ food to share with their families.A.are storing.B.stored.C.is storing.D.will store. 8. The measures of two angles in an isosceles triangle are shown in the diagram. Which equation can be used to find the value of x? A. 45 + 2x = 180B. 2(45) + x = 180C. 45 + 2x = 360D. 45 + x = 180 Help pleaseeeeeeeee... What are 3 duties of Washingtons Governor? Insert the comma for 10 points The sentence below states a main idea of the passage. "The acorn woodpecker's process of gathering and storing food makes it most unusual." (paragraph 6) What details from the passage support this main idea? A.The acorn woodpecker has an unusual process of gathering and storing food. B.The bird drills a hole wiht its beak into a wooden structure, such as a fence post or utility pole. C.One of the most unusual habits of the acorn woodpecker is that it doesn't leave the nest" in the way that other birds do. D.After the acorn dries out and becomes smaller in size, the bird moves the acorn to a smaller hole in the granary. E.They even help their parents raise more young. What is the greatest weakness/concern of using primary sources? Shapes S and T are similar.The area of S is 22 cm2. The area of T is 269.5 cm2.Find the length of side x. Evaluate the following expression using the values given:Find 5x 3y z if x = -2, y = 2, and z = -3-191913-13