Write a program that will add up the series of numbers: 99,98, 97...3.2.1. The program should print the running total as well as the total at the end.
The program should use one for loop, the range() function and one print() command.
Sample Run
99
197
294
390
-
4940
4944
4947
4949
4950

Answers

Answer 1

Answer:

result = 0

for i in range(99, 0, -1):

   result += i

   print(result)

Explanation:

Answer 2

It gives back a series of numbers that begin at zero, increase by one by default, and end just before the specified number. There are three criteria total, and two of them are optional.

What range() function and one print() command?

For the range() method to produce the integers in reverse order, use a negative step value. For instance, the expression range(5, -,1, -1) will result in the integers 5, 4, 3, 2, and 1.

By setting the step argument of a range() function to -1, you may effectively reverse a loop. Reverse iteration of the for loop's iterations will result.

The range() function returns a series of numbers that, by default, starts at 0 and increments by 1 before stopping in a given number.

Therefore, Instead of being a physical hardware device, a software calculator is one that has been implemented as a computer program.

Learn more about function here:

https://brainly.com/question/18065955

#SPJ5


Related Questions

Fred is interested in creating marketing materials for video games. Which of the following occupations should he pursue?


texture artist

video game designer

graphic artist

video game artist

Answers

Answer:

The answer above is wrong well at least for odyssey ware!!

Explanation:

I think D

what type of things can be marketed

Answers

Answer:

Physical goods that can be manufactured, or produced are the major items among those can be marketed. Examples include refrigerators, computers, music systems, food products, etc. Such physical goods constitute the bulk of production and marketing efforts. And here are the types of marketing Traditional Marketing. Traditional marketing refers to brand promotion on any kind of channel that has been around since before the advent of the internet.

________ were developed to allow computers to communicate using networking standards.
A. Nodes B. Sound cards C. network interface cards
A ______ is an interconnection of computers sharing data and peripherals.
A. Node B. Network C. peripheral
A ______ is any computer or digital device (wired or wireless) using the network to exchange data between other computers.
A. Nodes B. Network C. Analog
Walking the data to someone else is called ______.
A. Network B Sneaker-Net C. peripherals
_______ transformed computing by they providing fast, easy access to messages or data and to other users.
A. Digitals B. Peripherals C. Networks

Answers

1.) Network interface cards

2.) Network

3.) Nodes

4.) Sneaker-net

5.) Networks

Answer: Trust the person up top

Explanation:

Why does a bus topology require a terminator

Answers

Answer:The purpose of the terminator is to absorb signals so that they do not reflect back down the line

Explanation:

The answer is-

B.) because otherwise the packets will bounce back and forth from end to end repeatedly

Bus topology can be regarded as a kind of topology for a Local Area Network, it is one that has it's nodes connected to a single cable(backbone) and any break in the so called backbone, there will be failure in the entire segment. However a Terminator is usually attached to the end-points of a bus network so that the signal is absorbed by the Terminator and as a result of this the signal will not reflect back down the line. If there is no Terminator there would be bouncing back and forth of packet in an endless loop.It should be noted that a bus topology require a terminator because otherwise the packets will bounce back and forth from end to end repeatedly

8. It is a computer component that converts AC power to DC power to be used
by the computer system.

Answers

Answer:

power supply unit.

A power supply unit (PSU) converts mains AC to low-voltage regulated DC power for the internal components of a computer. Modern personal computers universally use switched-mode power supplies.

Explanation:

I HOPE THIS HELPS

PLZ MARK ME AS BRAINLIEST

THANK U!

how can parents be health educators in family​

Answers

Answer:

They can be health educators in family because they are your parents.

Explanation:

The reason why is because since they are your parents that means they have kids, so they probably know the ins and outs of parenting and running a family.

What is the purpose of an IP address?
A identifying source and destination of data
B. creating images on websites
C. drawing tables on a spreadsheet
D. arranging packets of data correctly

Answers

pretty sure the answer is A!

Select ALL the correct answers.
In attempts to improve their contribution to the environment a company decides to adapt green computing. Which of these techniques will contribute to green computing?
A.virtualization
B.grid computing
C.recycling
D.autonomic computing

Answers

Answer:

c. and a.

Explanation:

I think thought are right because you have to adapt the green

Answer:

A. Virtualization

C. Recycling

When was JavaScript founded?
Write in this format:
mm/yy

Answers

Answer:

It was founded in 09/95

Explanation:

Answer: 09/1995

JavaScript was founded in the September of 1995, in early fall. It is a very common dynamic computer programming language.

I wrote the answer in mm/yy format, so this answer should meet the requirements.

Hope this helps! Best of Luck!

n what sense is it now possible for a country to be ""occupied"" by an invisible invader that arrives through airwaves and wireless networks? A. It is almost impossible to block foreign countries’ satellite broadcasts and Internet transmissions. B. Spy satellites and other communications technology are increasingly advanced. C. Global positioning systems have allowed detailed mapping of previously inaccessible places. D. The U.S. government can eavesdrop on almost any form of modern communication.

Answers

Answer:

Option A. is correct

Explanation:

It now not possible for a country to be "occupied" by an invisible invader that arrives through airwaves and wireless networks. It is almost impossible to block foreign countries’ satellite broadcasts and Internet transmissions inspite of Spy satellites and other communications technology and Global positioning systems.

Option A. is correct

the way information from my computer is given back to the user is called​

Answers

Answer:

Add answer???

Explanation:

Given integer values for red, green, and blue, subtract the gray from each value.

Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus

(255, 0, 0) is bright red, (130, 0, 130) is a medium purple,(0,0,0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50,

130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray).

Given values for red, green, and blue, remove the gray part.

Answers

Answer:

Here is the C++ program:

#include <iostream>   //to use input output functions

using namespace std;   //to identify objects cin cout

int main() {   //start of main method

int red,green,blue,smallest;   //declare variables to store integer values of red,green, blue and to store the smallest value

cout<<"Enter value for red: ";  //prompts user to enter value for red

cin>>red;  //reads value for red from user

cout<<"Enter value for green: ";  //prompts user to enter value for green

cin>>green;  //reads value for green from user

cout<<"Enter value for blue: "; //prompts user to enter value for blue

cin>>blue;   //reads value for blue from user

//computes the smallest value

if(red<green && red<blue) //if red value is less than green and blue values

smallest=red;   //red is the smallest so assign value of red to smallest

else if(green<blue)   //if green value is less than blue value

smallest=green;   //green is the smallest so assign value of green to smallest

else  //this means blue is the smallest

smallest=blue;  //assign value of blue to smallest

//removes gray part by subtracting smallest from rgb

red=red-smallest;  //subtract smallest from red

green=green-smallest;  //subtract smallest from green

blue=blue-smallest;  //subtract smallest from blue

cout<<"red after removing gray part: "<<red<<endl;  //displays amount of red after removing gray

cout<<"green after removing gray part: "<<green<<endl;  //displays amount of green after removing gray

cout<<"blue after removing gray part: "<<blue<<endl;  } //displays amount of blue after removing gray

Explanation:

I will explain the program using an example.

Lets say user enter 130 as value for red, 50 for green and 130 for blue. Sp

red = 130

green = 50

blue = 130

First if condition if(red<green && red<blue)   checks if value of red is less than green and blue. Since red=130 so this condition evaluate to false and the program moves to the else if part else if(green<blue)  which checks if green is less than blue. This condition evaluates to true as green=50 and blue = 130 so green is less than blue. Hence the body of this else if executes which has the statement: smallest=green;  so the smallest it set to green value.

smallest = 50

Now the statement: red=red-smallest;  becomes:

red = 130 - 50

red = 80

the statement:  green=green-smallest;  becomes:

green = 50 - 50

green = 0

the statement: blue=blue-smallest; becomes:

blue = 130 - 50

blue = 80

So the output of the entire program is:

red after removing gray part: 80                                                                                                 green after removing gray part: 0                                                                                                blue after removing gray part: 80

The screenshot of the program along with its output is attached.

Use the drop-down menu to complete the steps for using the Autofill feature. Click the . Click the . Drag the to the desired range. Click the Autofill option you want to use.

Answers

Answer:

Cell,fill handle,fill handle

Explanation:

Trust

Answer:

Guy up top is correct, it's Cell, Fill handle, Fill handle, in that order

Explanation:

Write a program Gas.java that computes and displays the price a person will pay for gas at the gas station. The program takes three command-line arguments: two double arguments referring to the price per gallon, and the number of gallons of gas, and one boolean argument referring to whether the person pays cash or credit (true for cash, false for credit). If the person pays with a credit card, there is an extra charge of 10% of the total price. Gas is never free. A person stopping to buy gas will always buy some amount of gas. Print the error message "Illegal input" if any of the double inputs is zero or negative, and end the program.

Answers

Answer:

double price, number, total;

boolean payment;

Scanner input = new Scanner(System.in);

System.out.print("Enter Amount of Gas: ");

price = input.nextDouble();

I've added the full source file as an attachment.

Where I used comments to explain difficult line

Explanation:

i think it is a or c is it right?

Answers

C
She is emailing her boss that something is wrong.

Identify the correct characteristics of Python numbers. Check all that apply.

1. Python numbers can be large integers.

2. Python numbers can be complex values such as 12B16cd.

3. Python numbers can be floating-point numbers.

4. Python numbers have numeric values.

5. Python numbers are created automatically.

Answers

Answer:

The answers are 1, 2, 3, and 4

Explanation:

i just did it on edge

Answer:

The answers are 1, 2, 3, and 4

Explanation:

im simply good

(02.05 LC) What is an example of a web browser? Bing Firefox Instagram Yahoo

Answers

Answer: Firefox

Explanation:

Bing and Yahoo are search engines. Instagram is an example of social media. Firefox is a wed browser. A web browser is a window that allows you to open up new tabs. the other three are examples of tabs you can open with Firefox.

Answer:

firefox

Explanation:

In an "and" operator only ONE value has to be true to activate the if block
Yes or No
(Scratch Coding)

Answers

If the "and" operator is present, BOTH conditions must be True in order for the if block to be activated.

Answer:

No

Explanation:

Even after charging your smartphone for several hours, it still appears completely turned off and will not tum on What should you try next to restore it
to health?
A.)submerge it in a bag of rice for 24 hours
B.)perform a hard reset
C.)perform a soft reset
D.)plug it into a charger for another hour

Answers

B. Perform a hard reset. Hold home and power I think.

Answer:

C: perform a soft reset

Explanation:

Just took the test, got 100.

-
Which of the following is an example of academic integrity?
A. You work on each assignment mostly by yourself
B. You don't copy work or allow others to copy your work
c. You look up answers on the internet without citing the source
D. You work with close friends on assignments without instructor approval

Answers

Answer:

B. You don't copy work or allow others to copy your work

Explanation:

The example of academic integrity is that you don't copy work or allow others to copy your work. The correct option is B.

What is academic integrity?

The moral code or ethical policy of academics is known as academic integrity. The R.C., regarded as the "grandfather of academic integrity," popularised the phrase.

Being honest, fair, polite, and responsible in your studies and academic work is referred to as having academic integrity.

It entails acting in accordance with these ideals both when producing your own work and engaging with that of others.

Academic integrity is the practise of doing learning, teaching, and research with the principles of honesty, trust, fairness, respect, and responsibility.

Students, teachers, researchers, and all other staff members should act honestly, take responsibility for their choices, and be fair in all aspects of their job.

Thus, the correct option is B.

For more details regarding academic integrity, visit:

https://brainly.com/question/9540934

#SPJ2

does anyone know what type of Honda this is and the year of it lol this isn’t school related

Answers

my car guy boyfriend said that he thinks its a van due to the space and its definitely a newer Honda but not sure what year. he said don't quote him on it  tho lol

Give me 2 examples of Monthly Cash Inflow: (2 points) *

Answers

Answer:

cash payments for goods and services; merchandise; wages; interest; taxes; supplies and others.

Explanation:

Answer:

1. Key cash flow drivers should be modeled explicitly.

In our example, a retail store business should start with the number of stores it plans to operate each month, then build up from there, based on the number of square feet and sales per square foot.  This will help the business to compute its revenue.

2. Inputs should only need to be input once.

It is important to group all inputs in the assumptions section so users can easily find, add, and modify them.

Explanation:

Fill in the blank to give the result of each operation.
2 * 5 =

4 ** 3 =

7 / 2 =

17 % 3 =

Answers

Answer:

2 * 5 =10

4 ** 3 =64

7 / 2 =3.5

17 % 3 =2

Explanation:

I just got them all correct :) good luck

The result from each operation from each operation of the mathematical calculations are 10, 64, 3.5, and 0.51.

What is the mathematical calculations?

Counting, calculating, and grouping objects in simple math information and commercial activities were among the mathematical calculations. Simple math facts and operations can be counted and computed using this formula.

The correct fill in the blanks are:

2 × 5 = 104 ** 3 = 64 (Cube of 4)7 / 2 = 3.517 % 3 =0.51

Therefore, the mathematical calculations made the calculations easier, and it is a time saver.

Learn more about the mathematical calculations, refer to:

https://brainly.com/question/11790473

#SPJ2

A company hires Brandon, a software engineer. Brandon is asked to work on a project with others in order to meet a tight deadline. He finds himself in weekly meetings to discuss the direction and status of the project, but most of his time is spent creating code. What is Brandon's specialization?

system management
system support
system collaboration
system development

Answers

Answer:

System developement

Explanation:

he is creating code, which is devloping the system.

what are the software is there ? their uses

Answers

Answer:

Computer software is programming code executed on a computer processor. The code can be machine-level code, or code written for an operating system. An operating system is software intended to provide a predictable and dependable layer for other programmers to build other software on, which are known as applications.

I’m sorry but I don’t think you worded that correctly

What is one step taken when solving a computer software problem?

Answers

scanning the computer and deleting any viruses

[ if this helped you please give brainliest :) ]

Answer:

B. scanning the computer and deleting any viruses

Explanation:

edge 2020

When dealing with perspective, _____ lines are used or implied.

Answers

Answer:

I'm pretty sure the answer is vanishing lines.

Explanation:

Joann now wants to create a building block for the name of her company. She outlines the steps she needs to take to access the Create New Building Block dialog box. What does Joann need to change in her outline? Check all that apply.

Answers

Answer: D. She needs to revise step 4

Explanation: Just took the assignment on edge.

Answer:

D. She needs to revise Step 4

Explanation:

Edge 2020

how dependent are we on technology? ​

Answers

very independent  : ) we use it for everything

Select the correct answer.
In what decade did the first computer become commercially available?
A.
1950s
B.
1960s
1970s
thing
D.
1980s
O E.
1990s

Answers

Answer:

1960's

Explanation:

Answer: 1960

Explanation:

Other Questions
2,9,23,51,107Determine the next terms of sequence Solve the following algebraic equation. Show each step of the process. 1/4 (y+24)=32 Steve drew line segments CDEF, GHI, ADH, and BEH as shown in thediagram below. Scalene ADEH is formed.If segment CDEF is parallel to segment GHI, which statement is true? * Hello, Can you please help me with this problem? It's due at 9:00 pm (Please answer the whole thing if you can!) This is not for me it's for my little sister. Update : I give you The picture What is Smiths argument against restrictions on the free market? Do you agree with it? Why or why not? Can someone help me please, thanks. Who are otaku and Japanese here. If you are on the top a mountain and drop an apple, itwill fall to the ground, even though the apple isgravitationally attracted to you. Why?a)Earth is larger and has a much strongergravitational pullb) Apples always fall downC) Centrifugal forces pull the apple to the Earthand that is stronger than your gravitational pulld) None of these -\dfrac23p+\dfrac15-1+\dfrac56p 32 p+ 51 1+ 65 p What helped Lincoln decide to address the issue of slavery in the south ? what did the native Americans come from? Approximate the mean of the grouped data for the ages of the residents of a town.The approximate mean age is years.(Round to one decimal place as needed.)Age0-910-1920-2930-3940-4950-5960-6970-7980-89Frequency577339656047371318 How do you ask someone's name in Spanish? (1 point) O Cmo se llamas? O Cmo te llamas? O Cmo me llamo? O Cmo nos llamamos? Use the rule y = -x + 7 to fill in the blank if (1, y) is on the graph, then y = Find the solution to the system of equations.You can use the interactive graph below to find the solution.y = -5x + 6y = 3x 2X=y = 4. How did "Boss" Tweed and his associates steal millions from the taxpayers of New York? 1. Luis no es moreno. Es... a. bajo b. rubio c. perezoso 2. Marta no es antiptica. Es... a. tmida b. activa c. simptica 3. Luis no es perezoso. Es... a. trabajador b. Inteligente c. pelirrojo 4. Marta no es tmida. Es... a. extrovertida b. Morena c. atltica 5. Luis no es bajo. Es... a. Romntico b. gracioso 6. Marta no es pelirroja. Es... a. morena b. Perezosa c. bonita C. alto 1).Sumerian2).Doric3).Ironic4).Corinthian The 24th Amendment, ratified in 1964, eliminated the use of poll taxes in federal elections. Poll taxes had been used to prevent which group of people from voting? What is the amount of Maple Corp.'s charitable contribution deduction for the painting (assuming income limitations do not apply)