What is the output of this program? Assume the user enters 3, 6, and 11.

numA = 0
for count in range(3):
answer = input ("Enter a number: ")
fltAnswer = float(answer)
numA = numA + fltAnswer
print (numA)

Answers

Answer 1

Answer: 20

That would be the sum of 3, 6 and 11.

Explanation:

numA = 0

This step creates a variable called num A with the value of zero.

for count in range(3):

This step repeats our following 3 lines of code 3 times.

   answer = input ("Enter a number: ")

   This line of code creates and sets the variable "answer" to the

   value of what the user enters.

   fltAnswer = float(answer)

   This step converts our prevous user input which was a string into a

   float. This is were the code screams if you were to enter a character

   instead of a number.

   numA = numA + fltAnswer

   This step adds the user input to the variable numA.

   Or more correct:

   This step sets the variable numA to its previous value plus the user

   input.

print (numA)

This step prints out numA. This line is also outside of the loop and

will only activate once when the loop ends.


Related Questions


Which image file format is the most widely used?

Answers

Answer: jpeg because its a lot of people use it for quaity

..........................

Answers

Answer:

there is no question write the question for an answer

…………….? Hope this helps

Allen is a financial advisor. He would like to show his clients how much their investment has increased over the past year. What type of graph should he use?


a area graph
a pie graph
a line graph
a bar graph

Answers

Answer:

I think it is a line graph

Explanation:

..

This is your code. >>> A = [21, 'dog', 'red'] >>> B = [35, 'cat', 'blue'] >>> C = [12, 'fish', 'green'] >>> e = [A,B,C] How do you refer to 'green'? e(2, 2) e(2, 2) e(2)(2) e(2)(2) e[2][2] e[2][2] e[2, 2] e[2, 2]

Answers

Explanation:

e[2][2] gives you the output for green

I hope it helped you

Give the value of following Java expressions.

false || 6 > 12 && !(3==7)

Answers

Answer:

public class Program

{

public static void main(String[] args)

{

int j=18;

int sum=0;

for (int i =1; i<7; i++)

{

sum=sum+(i*(j-2));

j=j-2;

}

System.out.println(sum);

}

}

Explanation:

Variables used:

j : controls the first number in product and decreases by 2 each time the loop runs.

sum: saves the values of addition as the loop runs.


In Excel, which of the following data types is used for description purposes only and
not for calculations?

Answers

Which of the following what?

Either way, Excel has number, text, logical, error

Go for text

Name the malware which looks for security flaws in applications and systems.

Answers

Answer: Worm

Explanation: Worms are one of the most common forms of malware, as they spread easily by finding and expoliting secuirty flaws in operating systems.

Design an algorithm that will prompt for and receive pairs of numbers from an operator at a terminal and display their sum, product and average on the screen. If the calculated sum is over 200, an asterisk is to be displayed beside the sum. The program is to terminate when a pair of zero values is entered.

Answers

Explanation:

The Program is written in Python

How do you properly turn off a computer?

Answers

Answer:

The Power Button

Explanation:

There should be a power button on the side of your computer. You might need to press it and hold it, but it varies on different computers. If you are using a new Mac, press and hold down the same button you use for Touch ID.

Which CPT icon should be considered when entering CPT codes into a spreadsheet for numerical sorting

Answers

Answer:

##

Hashtag##

Explanation:

Hashtag (#) symbols identifies codes out of numerical sequence. These codes are listed in Appendix N. Star symbols identify codes that, when appended by modifier 95, can be used to report telemedicine services.

What is a vertex in technical drawing?


A.location in space

B.shortest distance between two points

C.intersection of two surfaces

D.end of an edge

E. space between two intersecting lines

Answers

A point where 2 or more curves, lines, or edges meet.

The coordinates for the section element need not be defined as long as its position is set to

Answers

Answer:

relative.

Explanation:

The coordinates for the section element need not be defined as long as its position is set to relative.

If the position is set as relative, then it will have no effect on the positioning attributes, it will consider as static position. If positioning is mentioned explicitly like top: 20px; then it will position 10 pixels down from where it is located. An ability for positional shifts is extremely helpful.

Two things happen when an element is set as relative, one is it introduces the ability to use z-index on that element, second is it limits the scope of absolutely positioned child elements.  

Which of the following best describes a comparison operator?
a. An operator that turns the Drivetrain for a specific angle.
b. A command that compares the color of a disk with the number of disks collected.
C. A control statement that uses Boolean statements as conditions.
d. An operator that compares two operands.

Answers

Answer:

C. A control statement that uses Boolean statements as conditions.

Explanation:

Boolean value can either be True or False.

Control statements check if a certain condition is met. If it is then they evaluate to be true then the necessary lines of code are executed. If it evaluates to be False, the lines of code that were suppose to be executed are skipped.

For example, if y is greater than zero, divide x by y

[tex]if \: \: y > 0 : [/tex]

[tex]a = \frac{x}{y} [/tex]

why do we need ro use drafting tools. materials and equipment according to its job requirements​

Answers

Answer:

Drafting tools may be used for measurement and layout of drawings, or to improve the consistency and speed of creation of standard drawing elements.

Explanation:

Drafting tools may be used for measurement and layout of drawings, or to improve the consistency and speed of creation of standard drawing elements.

Hint: Use a loop inside a loop to complete drawTriangle(). The outer loop is responsible for outputting the asterisk line, and the inner loop is responsible for building the asterisk line with the appropriate length by concatenating asterisks to a single string.

Answers

I didn't quite understand your answer... however... here you have a program which makes an equilateral triangle (not taken into account that the terminal isn't made of squares) made of asterisk lines.

(It was quite hard accually)

Can someone answer the question s please

Answers

Answer:

1. it the point of art and they do it for fun

2. Yes I done that a couple of time and the reason why is because it fun and it u that is acknowledging your own work that u done for later memories even tho you know it wont last long.

3. I would love to create a sand castle I think or something about kpop

What are the correct answers to the following questions?

What are physical waves that travel through matter?
Analog Sound / Digital Sound / Pixels

What are electrical impulses represented as 0’s and 1’s?
Digital Sound / Analog Sound / Slot

What are the tiny dots that make up the images seen on a monitor called?
Pixels / Buses / Slots

What is a network that is confined to a small area?
Local Area Network / Bus / Slot

What is a subsystem that either transfers data between computer components or between computers? Bus / Digital Sound / Analog Sound

What are openings in a computer where printed circuit boards can be inserted to expand the computer’s capabilities called? Slots / Buses / Pixels

Answers

Answer:1.) Analog

2.) Digital

3.) Pixels

4.) Local Area Network

5.) Bus

6.) Slots

Explanation:

The answers to the given questions are:

Analog Sound

Digital Sound

Pixels

Local Area Network (LAN)

Bus

Slots

Physical waves that travel through matter are referred to as analog sound waves.

These waves are continuous and represent the variations in air pressure caused by sound.

Analog sound is used in older forms of audio technology like vinyl records and cassette tapes.

Hence, Analog Sound are physical waves that travel through matter.

Electrical impulses represented as 0's and 1's are characteristic of digital sound.

In digital sound, sound signals are converted into binary code (0's and 1's) which can then be processed and transmitted by computers and other digital devices.

Hence, Digital Sound  are electrical impulses represented as 0’s and 1’s.

The images seen on a monitor or screen are made up of tiny dots called pixels.

Each pixel represents a single point of color or light, and when millions of pixels are combined, they create the images and videos that we see on digital displays.

Hence, the tiny dots that make up the images seen on a monitor called Pixels.

A Local Area Network (LAN) is a network that is confined to a small geographic area, such as within a building, a campus, or a specific group of interconnected buildings.

LANs are commonly used to connect computers and devices within a limited area.

So, Local Area Network is a network that is confined to a small area.

A bus is a subsystem in a computer that facilitates the transfer of data between different computer components (such as the CPU, memory, and peripherals) or between different computers in a network.

Buses can be thought of as communication pathways that enable the flow of information.

Hence, Bus is a subsystem that either transfers data between computer components or between computers.

Slots are openings in a computer's chassis or motherboard where printed circuit boards (also known as expansion cards) can be inserted. These expansion cards can add various capabilities to the computer, such as graphics processing, sound, network connectivity, and more.

Hence,  in a computer where printed circuit boards can be inserted to expand the computer’s capabilities called slots.

To learn more on Computer click here:

https://brainly.com/question/34803897

#SPJ3

in your own view, how can social media be used in teaching and learning in higher education?

Answers

Answer:

through the use of zoom to teach.And reading books online

What is the output of this program? numA = 2 numB = 3 if numA == 2 or numB == 2: print("yes") elif numA == 2 and numB == 3: print("no") Output:

Answers

Answer:

The outcome would be "yes".

Explenation:

numA = 2

numB = 3

if numA == 2 or numB == 2:

   print("yes")

elif numA == 2 and numB == 3:

   print("no")

numA = 2

This line of code declares the variable numA and gives it a value of 2

numB = 3

This line of code declares the variable numB and gives it a value of 3

if numA == 2 or numB == 2:

This part activate the next line of code only if the statement (numA == 2 or numB == 2) is True

   print("yes")

   This code prints out "yes" in the terminal.

elif numA == 2 and numB == 3:

This line of code is similar to the ifstatement above. The code below activates only if the statement (numA == 2 and numB == 3) is True and the previous ifstatement wasn't True.

   print("no")

   This code prints out "no" in the terminal.

Answer:

yes

Explanation:

Windows Firewall is the anti-malware software that comes free with Windows 10. Choose the answer. True False​

Answers

Answer:

true my guy

Explanation:

hahahhaha

Answer:

True

Explanation:

What is installing?
the process of putting new software on a computer
the process of replacing an older version of software with a newer version
O the process of limiting who is allowed to access your information
O the process of programming a language to use on a web page

Answers

Answer:

The process of putting a new software on a computer.

Explanation:

Installing is the process of putting a new software on a computer.

Updating is process of replacing an older version of software with a newer version.

3. Encode these sentences in ASCII: a. "Stop!" Cheryl shouted. b. Does 2 + 3 = 5?​

Answers

Answer:

"Stop!" Cheryl shouted.
34, 83, 116, 111, 112, 33, 34, 32, 67, 104, 101, 114, 121, 108, 32, 115, 104, 111, 117, 116, 101, 100, 46

Does 2 + 3 = 5?
68, 111, 101, 115, 32, 50, 32, 43, 32, 51, 32, 61, 32, 53, 63

I got these numbers with this python code:
print([ord(c) for c in '"Stop!" Cheryl shouted.'])
print([ord(c) for c in 'Does 2 + 3 = 5?'])

Nathan wants to use the Push transition from left to right in his presentation. After he selects the Push transition, what should he do next? Select the From Left option from the Effect Options drop-down menu. Select the From Left option from the Transition group drop-down menu. Select the From Right option from the Effect Options drop-down menu. Select the From Top option from the Transition group drop-down menu

Answers

After he selects the Push transition, He should select from Left option from the Effect Options drop-down menu.

What is push transition in PowerPoint?

The Push Transition Effect is known to be a function in a PowerPoint that helps to pushes one slide to show the other.

Note that when this is  applied to any presentation, it moves the current slide upwards to reveal the next slide and so on. A person can add use this kind of effect to present a scrolling effect to one's PowerPoint work.

Learn more about presentation from

https://brainly.com/question/24653274

Answer:

A

Explanation:

the answer is A

Coral 3.22 LAB: Loops: Countdown until matching digits

Answers

Answer:

//in c++

#include <iostream>

using namespace std;

int main() {

   int i;

   cin >> i;

   do { cout <<i<<" "; } while (i--);

   return 0;

}

Spell all words correctly.

Ben knows that procedural programming structures a computer program as a set of computational steps consisting of computer code that performs a specific task. What should Ben call such sets of code?

Procedural programming structures a computer program as a set of computational steps consisting of computer code that performs a specific task.Such sets of code are called procedures or ___________.

Answers

Answer:

functions

Explanation:

i just took the test

What variation pairs a new employee with an employee who has been with the company for 20 years?

Answers

The variation pairs a new employee with an old employee usually focus on employee accomplishments, and criteria that employee meets or not.

What are the Appraisal Methods used to evaluate an employee's performance?

The behavioral method is known to be one of the ways to check an employee's actions within a given job.

Conclusively, There is also the use of Comparative methods that tends to compare one employee with different employees. The use of Results methods are the ones that looks into  employee accomplishments.

Learn more about variation pairs from

https://brainly.com/question/19262673

Answer:

expert-novice

Explanation:

Vanessa is creating some graphic images for a page layout. What is the minimum resolution (in dots per inch) for graphic images that Vanessa
must ensure so that she gets crisp images in the final printed product?
A 72
B.300
C. 220
D. 150
E. 120

Answers

The  minimum resolution (in dots per inch) for graphic images that Vanessa is 300.

What is Website image size guidelines?

Note that a web site is one that often use about 700-800 pixels wide. this therefore means that an image that is said to be around 400 or 500 pixels wide will take a lot of space and will be very big on a monitor.

Note that The minimum resolution (in dots per inch) for graphic images that Vanessa is 300 and less than that will be too much big.

Learn more about  graphic images from

https://brainly.com/question/25938417

#SPJ1

Answer:

the answer is B. 300

Explanation:

4. Cash inflows from investing activities normally arise from all of the following EXCEPT

a. selling fixed assets.
b. issuing stock.
c. selling investments.
d. selling intangible assets.

Answers

The answer is b. issuing stock

an opening inside the system unit in which you can install additional equipment can be known as

Answers

Answer:

A bay is an open area inside the system unit in which you can install additional equipment.

Audio Director meaning

Answers

Answer:

a senior audio engineer with extensive experience who establishes audio design rules, assigns project goals and deadlines to each team member, and oversees workflow throughout the project cycle.

Other Questions
Flight A left Las Vegas headed to San Diego traveling at 460 mph. At the same time, Flight B leaves San Diego headed toLas Vegas traveling at 500 mph. If the two cities are 331 miles apart, what time,t, shouldthe alr?the flights pass each other In the air My sister and I finished our chores before dinner. what is the pronoun in this sentence? Which is the dependent variable in the following situation?"The teacher ordered two binders for each student." Describe what the world will be like in 100 years. Be specific. What will cities look like? How will people communicate? How will people travel? What will schools be like? Think about technology and the environment. Will there be wars? Will there be religions? You pick a card from a shuffled pack and draw a king. You put it back in the pack, shuffle, and then pick another card. This time you draw a queen. How are the two events of picking a king and picking a queen related? 1)13C1057Aa. 36.2b40.2c81.6d43.9 A bag contains 8 red marbles, 4 blue marbles and 2 green marbles. If two marbles aredrawn out of the bag, what is the exact probability that both marbles drawn will bered? solve for x : -18 = x -17 During a thunderstorm, lightning struck so close that it took out the power to Janelle's house. At the same time as the lightning strike, Janelle felt scared. Which of the theories of emotion best explains Janelle's experience? Cannon-Bard theory Schachter-Singer two factor theory Facial feedback hypothesis James-Lange theory Thorndike's Law of Effect the diameter of a circle is 24 centimeters. what is the circles area? use 3.14 for pi Question 1 of 10Which type of cloud is made up of both liquid water droplets and ice crystals? A. Cirrostratus B. Stratus C. Cirrus D. CumulonimbusSUBMIT Mary is 63.5 inches tall and her sister Tonya is 70 inches tall. Tonya wants to know how many inches taller she is than Mary. Which equation and solution can be used to solve this problem?x + 70 = 63.5: Subtract 70 from both sides. The answer is 6.5 inches.63.5 + x = 70: Subtract 63.5 from both sides. The answer is 6.5 inches.x minus 63.5 = 70: Add 63.5 to the left side and subtract 63.5 from the right side. The answer is 6.5 inches.63.5 minus x = 70: Subtract 63.5 from both sides. The answer is 6.5 inches. Anyways- who was the first African American to be a judge? You pay $5,500 per year for insurance on your building. Fire damage caused $15,000 in repairs. The insurance company paid for the repairs with a $1,000 deductible. Insurance premiums will go up by 15% because of the claim. What will be the annual insurance cost on the building next year How can a black hole tunnel to another universe 1. Given the following reaction, answer the questions that follow:C3H8+5 023 CO + 4HOa) If you begin with 3.5 moles of C3H8 and 6.2 moles of O, find the moles of carbon dioxide produced_b) Find the mass of CO produced using your work in step (a) above. Which of the following is a signal from the environment?aOA stimulusO B.responseO C.reflexOD. instinct the square root of 8 divided by the square root of 3n^3 carbon reacts with oxygen to produce carbon dioxide (CO2(g),deltaHf=-393.5kl/mol)according to the equation below A bullet with a mass of 4.26 g and a speed of 881 m/s penetrates a tree horizontally to a depth of 4.44 cm. Assume that a constant frictional force stops the bullet. Calculate the magnitude of this frictional force. Try energy considerations.