What is the value of numC at the end of this loop?

numC = 12

while numC > 3:

numC = numC / 2


numC =

Answers

Answer 1

Answer: 3

Explanation:

What is the value of numC at the end of this loop?

numC = 12

while numC > 3:

numC = numC / 2

numC =

The initial numC value = 12

Condition : while numC is greater than 3 ; 12 > 3 (condition met)

The expression numC / 2 is evaluated

numC / 2 = 12 / 2 = 6

numC then becomes 6 ;

Condition : while numC is greater than 3 ; 6 > 3 (condition met)

numC / 2 = 6 /2 = 3

numC = 3

Condition : while numC is greater than 3 ; 3 > 3 (condition not met)

Loop terminates

numC = 3


Related Questions

most of the answers for this test is wrong.

Answers

Answer: C, Showing professional behavior.

Explanation:

You can expect to see

Answers

Answer:

what?ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

Answer:

D

Explanation:

You can expect to see ________.

A. STOP signs or traffic lights on limited access highways

B. only traffic lights on limited access highways

C. only STOP signs on limited access highways

D. no STOP signs or traffic lights on limited access highways

What is media framing?

Answers

Answer:

media frame all news items by specific values, facts, and other considerations, and endowing them with greater apparent for making related judgments

Explanation:

Consider the following method.


public int locate(String str, String oneLetter)

{
int j = 0;
while(j < str.length() && str.substring(j, j+1).compareTo*oneLetter < 0)
{
j++;
}
return j;
}

Which of the following must be true when the while loop terminates?

a. j == str.length()
b. str.substring(j, j+1) >= 0
c. j <= str.length() || str.substring(j, j+1).compareTo(oneLetter) > 0
d. j == str.length() || str.substring(j, j+1).compareTo(oneLetter) >= 0
e. j == str.length() && str.substring(j, j+1).compareTo(oneLetter) >= 0

Answers

Answer:

All

Explanation:

From the available options given in the question, once the while loop terminates any of the provided answers could be correct. This is because the arguments passed to the while loop indicate two different argument which both have to be true in order for the loop to continue. All of the provided options have either one or both of the arguments as false which would break the while loop. Even options a. and b. are included because both would indicate a false statement.

During TCP/IP communications between two network hosts, information is encapsulated on the sending host and decapsulated on the receiving host using the OSI model. Match the information format with the appropriate layer of the OSI model.

a. Packets
b. Segments
c. Bits
d. Frames

1. Session Layer
2. Transport Layer
3. Network Layer
4. Data Link Layer
5. Physical Layer

Answers

Answer:

a. Packets - Network layer

b. Segments - Transport layer

c. Bits - Physical layer

d. Frames - Data link layer

Explanation:

When TCP/IP protocols are used for communication between two network hosts, there is a process of coding and decoding also called encapsulation and decapsulation.

This ensures the information is not accessible by other parties except the two hosts involved.

Operating Systems Interconnected model (OSI) is used to standardise communication in a computing system.

There are 7 layers used in the OSI model:

1. Session Layer

2. Transport Layer

3. Network Layer

4. Data Link Layer

5. Physical Layer

6. Presentation layer

7. Application layer

The information formats given are matched as

a. Packets - Network layer

b. Segments - Transport layer

c. Bits - Physical layer

d. Frames - Data link layer

when you look directly at a camera lens, it may seen like there is only one lens, but entering light actually passes through a series of lenses, or_____, that bend the light and send it on its way to be focused on the film or digital. chip

Frame
Optics
Flash
SD cARD

Answers

Answer:

The answer should be optics...

Explanation:

If aa person is known to have look at a camera lens straight and light passes via a number of lenses, or Optics.

What is Optics?

This is known to be an aspect  of physics that looks at the attributes and properties of light, such as its relationship with matter, etc.

Therefore,  If a person is known to have look at a camera lens straight and light passes via a number of lenses, or Optics.

Learn more about Optics from

https://brainly.com/question/18300677

#SPJ9

The Fast as Light Shipping company charges the following rates. Weight of the item being sent Rate per 100 Miles shipped 2kg or less. $0.25 Over than 2 kg but not more than 10 kg $0.30 Over 10 kg but not more than 20 kg. $0.45 Over 20 kg, but less than 50kg. $1.75 Write a program that asks for the weight of the package, and the distance to be sent. And then displays the charge.

Answers

Answer:

weight = float(input("Enter the weight of the package: "))

distance = float(input("Enter the distance to be sent: "))

weight_charge = 0

if weight <= 2:

   weight_charge = 0.25

elif 2 < weight <= 10:

   weight_charge = 0.3

elif 10 < weight <= 20:

   weight_charge = 0.45

elif 20 < weight <= 50:

   weight_charge = 1.75

if int(distance / 100) == distance / 100:

  d = int(distance / 100)

else:

   d = int(distance / 100) + 1

   

total_charge = d * weight_charge

print("The charge is $", total_charge)

Explanation:

*The code is in Python.

Ask the user to enter the weight and distance

Check the weight to calculate the weight_cost for 100 miles. If it is smaller than or equal to 2, set the weight_charge as 0.25. If it is greater than 2 and smaller than or equal to 10, set the weight_charge as 0.3. If it is greater than 10 and smaller than or equal to 20, set the weight_charge as 0.45. If it is greater than 20 and smaller than or equal to 50, set the weight_charge as 1.75

Since those charges are per 100 miles, you need to consider the distance to find the total_charge. If the int(distance / 100) is equal to (distance / 100), you set the d as int(distance / 100). Otherwise, you set the d as int(distance / 100) + 1. For example, if the distance is 400 miles, you need to multiply the weight_charge by 4, int(400/100) = 4. However, if the distance is 410, you get the int(400/100) = 4, and then add 1 to the d for the extra 10 miles.

Calculate the total_charge, multiply d by weight_charge

Print the total_charge

Mark is a stockbroker in New York City. He recently asked you to develop a program for his company. He is looking for a program that will calculate how much each person will pay for stocks. The amount that the user will pay is based on:


The number of stocks the Person wants * The current stock price * 20% commission rate.


He hopes that the program will show the customer’s name, the Stock name, and the final cost.


The Program will need to do the following:


Take in the customer’s name.

Take in the stock name.

Take in the number of stocks the customer wants to buy.

Take in the current stock price.

Calculate and display the amount that each user will pay.

A good example of output would be:

May Lou
you wish to buy stocks from APPL
the final cost is $2698.90

Answers

ok sorry i cant help u with this

In what way can an employee demonstrate commitment?

Answers

Answer:

Come to work on time ready to work. Always work above and beyond. ... Come to work on time, follow all rules, do not talk about people, and be positive get along with coworkers.

Explanation:

An employee can demonstrate commitment to their job and organization in several ways.

First and foremost, they show dedication and enthusiasm by consistently meeting deadlines, going above and beyond to achieve goals, and taking ownership of their responsibilities.

Being punctual and reliable also reflects commitment. Employees who actively participate in team efforts, support colleagues, and offer innovative ideas exhibit their dedication to the company's success.

Demonstrating a willingness to learn and grow by seeking additional training or taking on new challenges further showcases commitment.

Ultimately, a committed employee is driven by a genuine passion for their work, a strong work ethic, and a sense of loyalty to their organization's mission and values.

Know more about employee commitment:

https://brainly.com/question/34152205

#SPJ6

Consider an entity set Person, with attributes social security number (ssn), name, nickname, address, and date of birth(dob). Assume that the following business rules hold: (1) no two persons have the same ssn; (2) no two persons have he same combination of name, address and dob. Further, assume that all persons have an ssn, a name and a dob, but that some persons might not have a nickname nor an address.
A) List all candidate keys and all their corresponding superkeys for this relation.
B) Write an appropriate create table statement that defines this entity set.

Answers

Answer:

[tex]\pi[/tex]

Explanation:

Other Questions
Two Identical Buildings stand parallel on opposite sides of a road. Find the angle of depression from A to B what is x=9 z=2 times? y=-11x+5. help what is the slope who was Hatshepsut? (PLEASE HELP FAST) Divide using a common factor of 6 to find an equivalent fraction forsix twelfthsQuestion 5 options:one thirdtwo sixthsone halffour sixthsQuestion 6 (2 points) (09.04 LC) Divide using a common factor of 2 to find an equivalent fraction foreight tenthsQuestion 6 options:two fifthsfour tenthsone halffour fifthsQuestion 7 (2 points) (09.04 LC) Divide using a common factor of 4 to find an equivalent fraction forfour eighthsQuestion 7 options:two eighthsone halffour sixthseight twelfthsQuestion 8 (2 points) (09.04 LC) Divide using a common factor of 5 to find an equivalent fraction forten tenthsQuestion 8 options:one fifthtwo fifthsfive tenthstwo halvesQuestion 9 (2 points) (09.04 LC) Divide using a common factor of 2 to find an equivalent fraction fortwo sixthsQuestion 9 options:one sixthone thirdthree sixthstwo thirdsQuestion 10 (2 points) (09.04 MC) Name a fraction that is equivalent to three twelfths and also has a denominator that is less than 12. Explain how you found your answer. help plz if you cant read them let me know plz Patrick drives from P to Q at an average speed of 40 mph. His drive back from Q to P is at an averagespeed of 45 mph and takes two minutes less.How far, in miles, is it from P to Q? 3xy - 4y when y = 2 and x = 5 Using a dictionary, look up the meaning of the word "average." In a few sentences, describe the differences in meaning you found. In what subject might you expect to hear each version of the word? In order to find speed, what two variables are needed? * Based on the scatterplot, which is the best predictionof the number of gallons of water used by thisbusiness when the cost of water is $180? Charles has 82 stamps altogether. He has 24 more local stamps than foreign stamps.How many local stamps does he have? can someone help me with these 3 questions please!!1. Use greatest common factor and the distributive property to write an equivalentexpression in factored form.2x + 8y2. Use greatest common factor and the distributive property to write an equivalentexpression in factored form.13ab + 15ab3. Use greatest common factor and the distributive property to write an equivalentexpression in factored form.20g + 24h Suppose you are an expert on the fashion industry and wish to gather information to compare the amount earned per month by models featuring Liz Claiborne attire with those of Calvin Klein. The following is the amount ($000) earned per month by a sample of 15 Claiborne models: $4.7 $3.8 $6.7 $3.8 $3.9 $4.2 $4.0 $4.0 $4.8 $3.1 3.1 5.5 3.4 6.1 4.9 The following is the amount ($000) earned by a sample of 12 Klein models. $4.0 $3.8 $3.6 $2.5 $4.9 $5.2 $5.9 $4.9 $4.4 $3.6 5.1 4.7Required:a. Find the degrees of freedom for unequal variance test. b. State the decision rule for 0.05 significance level: H0: LC CK; H1: LC > CK.c. Compute the value of the test statistic.d. Is it reasonable to conclude that Claiborne models earn more? Use the 0.05 significance level. Maddie swims the hundred meter freestyle in 30 seconds what is her average speed in meters per minute What did Herbert Hoover do to help Americans survive the Depression?He urged local governments to create jobs.He created public works projects.He decreased taxes on imported goods.He increased taxes on businesses. Jack was 14 years older than Priscilla. Together their ages totaled 158 years. What were their ages? what are the basics of investing in the Stock Market it says I have 4 cups of white paint for 3 cups of red paint? what is the equivalent for 1 cup of red paint in white paint? What is the equivalent division statement to 63 x 1/9