Create an application that prompts the user for a number and then displays the numbers 1 through the number entered, each on a separate line. Below the numbers, the sum is displayed.

Answers

Answer 1

Answer:

In Python:

start = num(input("Enter a number: "))

sum = 0

for x in range(1, start+1):

sum += x

print (x)

print ("Final Sum: " + sum)

Answer 2

Answer:

import java.util.Scanner;

public class NumberSum {

public static void main(String[] args) {

// TODO Auto-generated method stub

int num, sum=0,num1=0;

Scanner input=new Scanner(System.in);

 

System.out.println("Enter a number");

num=input.nextInt();

input.close();

 

do{

System.out.println(num1);

num1+=1;

sum+=num1;

}while(num1<=num);

System.out.println(sum);

}

}


Related Questions

Animals living in burrows under the ground is an interaction between the biosphere and the

Answers

Answer:

Geosphere

Explanation:

The geosphere is made up of the rocks and minerals of the earth found in the ground.

NFPA 780, Standard for the Installation of Lightning Protection Systems provides information on the installation of _____ for lightning protec-tion systems [250.4(A)(1)].

Answers

Answer:

a and b. 250.4(A)(1) Note

Explanation:

________________ is access to the internet through your tv connection.

Answers

Answer:

Cable Modem

Explanation:

Since the advent of online writing, our audience:

A. has grown much larger

B. rarely reads what we write

C. has become disinterested

D. usually comprises one person​

Answers

Answer:

C............. I think

Since the advent of online writing, our audience: A. has grown much larger.

Writing refers to an act (process) of using alphabets and writing symbols to communicate ideas, emotions, and thoughts in a readable form.

On a related note, online writing can be defined as a process that involves writing and making a literary work (piece) solely available for an audience over the internet.

Generally, the audience for online writing has grown much larger, as a result of technological advancement and the availability of communication devices such as:

SmartphonesLaptopsPalmtopse-diaries

In conclusion, our audience has grown much larger since the advent of online writing.

Read more on online writing here: https://brainly.com/question/10354868

Which of the following is used to regularly update an operating system? App Extension OS Patch

Answers

Answer:

patch

Explanation:

patch, by definition, is an update meant to fix security flaws.

app, extension, and os dont update

To regularly update an operating system is Patch.

What is Patch?Unlike different news apps, the Patch app allows users to subscribe to a personalized newsfeed from considerable cities and towns across the U.S. Following a smooth launch before this year, the app already includes over 233,000 downloads and averages a 4.5-star rating on both the Apple and Android app stores.In 2013, Patch was spun out of AOL as a joint experience with Hale Global. In January 2014, the latest owners reported layoffs of 400 journalists and other workers. In February 2016, The Wall Street Journal documented that Patch had 23 million users, which was advantageous and developing into new territories.The birth management patch may be a good alternative for someone who's sexually active, considers less than 198 pounds (90 kilograms), and discovers it hard to determine to take a pill every day or who keeps trouble ingesting pills. In some cases, medical or other circumstances make the use of the patch less practical or riskier.

To learn more about Patch, refer to:

https://brainly.com/question/20652851

#SPJ2

"code is broken down by the computer until it is in _____and is a very long series of ons and offs

binary
code
decode
logic

Answers

Answer:

Binary

Explanation:

Binary is 0 and 1, true and false, on and off. It is the only language machines can understand.

Answer:

I'd say that the answer is Binary because it wouldn't be code, decode, or logic and Binary is the only one that makes sense and i got it correct when i did the exam.

Explanation:

Match each Animation category to its description

Answers

Answer:

Your photo is 100% correct

Explanation: protect question from longwinded or poor answers complete.

Motion path: move object on screen. Emphasis: make an object stand out. Entrance: move an object top the frame. Exit: move object out of the frame.

What is animation?

Animation is the process of creating the illusion of motion and change by rapidly displaying a sequence of static images that minimally differ from each other.

The terms commonly used in animation and video production:

The path that an object takes as it moves across the screen is referred to as its motion path. A straight line, a curve, or any other shape or pattern can be used.

The use of animation techniques to draw attention to a specific object or element on the screen is referred to as emphasis. This can be accomplished by utilising colour, size, movement, or other visual effects.

The animation of an object as it enters the screen or frame is referred to as its entrance. This can be accomplished through the use of various techniques such as a slide, a fade-in, or a zoom-in effect.

Exit: the animation of an object leaving the screen or frame. This can be accomplished through the use of various techniques such as a slide, a fade-out, and so on.

Thus, this can be the match for the given scenario.

For more details regarding animation, visit:

https://brainly.com/question/29996953

#SPJ3

Can I get help with making this code and no importing please

Answers

Use code #cam2! For more reassurance o your code

The network or networks within an AS communicate with protocols as well; these are called generically __________.

Answers

The protocol that is used by network or networks within an autonomous system (AS) to communicate with each other is generically called: interior gateway protocol (IGP).

A network refer to a set of interconnected computer systems (nodes) and the relational ties linking the computer systems together, especially for the purpose of exchanging (transmitting) data electronically.

An autonomous system (AS) can be defined as a network or group of networks that are administered or managed by an individual or business firm while using a single set of management rules.

Generally, an autonomous system (AS) typically uses a single (one) Internet Protocol (IP) routing protocol.

In this context, the protocol that is used by network or networks within an autonomous system (AS) to communicate with each other is generically called an interior gateway protocol (IGP).

On the other hand, an exterior gateway protocol (EGP) is the protocol that is used by autonomous systems (AS) to communicate with each other.

Read more: https://brainly.com/question/20629962

Independence Day celebration in school paragraph ​

Answers

Answer:

We celebrated the Independence day in our school compound, with great pump and show. The school building and the ground were cleaned and decorated for the occasion. A flag pole was put up at the top of the school building. The seating arrangement was made on the platform

Explanation:

please Mark my answer in brainlist

4. Each mobile device described in this chapter requires that the user have a/an ____________________ associated with services offered by the publisher of the mobile OS in use on the device.

Answers

All mobile devices requires that end users have an account that is associated with services offered by the publisher of the mobile operating system (OS) installed on the device.

A mobile device can be defined as a small, portable, programmable electronic device that is designed and developed for the transmission and receipt of data signals (messages) over a network. Thus, a mobile device must be designed as a handheld device with communication capabilities.

Additionally, mobile devices such as smartphones have a mobile operating system (OS) installed on them, so as to enable them perform various tasks such as:

Taking pictures and creating video files.Typing and sending both text and multimedia messages.Browsing the Internet.Making both audio and video calls.

As a general rule, all mobile devices requires that end users have a registered account associated with the services offered by a publisher of the mobile operating system (OS) installed on the device. This registered account serves as a unique identifier and it connects an end user with the publisher of the mobile operating system (OS).

Read more: https://brainly.com/question/4922532

What is the quickest option for adding internet images to a PowerPoint presentation?

*it's b. use the online pictures option....

Answers

Answer:

b. Use the Online Pictures option to perform a search of web-based images to insert.

Explanation:is correct. post protected

How to turn robot voice like real human voice.

Answers

Go in front of the mirror and act like robot and talk ,there you have a robot voice like real human voice

five types of conflict in the school​

Answers

Answer:

Conflicts can be classified into five different types: structural, value, relationship, interest, and data [

Explanation:

Answer:

Conflicts can be classified into five different types: structural, value, relationship, interest, and data

Explanation:

follow me please

what is the most common size for footings for an 8 inch foundation​

Answers

Answer:

#4 rods at 12 inches o.c.

Explanation:

a ________ uses electronic memory and has no motors or moving parts.

Answers

Answer:

a to uses electronic memory and has no motors or moving parts.

Explanation:

brainliest me and follow ty

What is the main purpose of adding captions to an image or table in Word?
O to show the reader where to learn more about the image
O to identify other images that are similar to the one shown
O to add detailed information about the image for the reader
O to provide information on the size and shape of the image

Answers

Answer:

C. to add detailed information about the image for the reader

Explanation:

hope this helps :)

The main purpose of adding captions to an image or table in Word is to provide detailed information about the image for the reader.

Thus, option (c) is correct.

Captions help the reader understand the content of the image, such as its context, significance, or key points, without having to rely solely on the visual information.

Captions also help in referencing the image or table in the text, making it easier for readers to locate and understand the content being discussed in the document.

Therefore, adding captions provide detailed information about the image for the reader.

Thus, option (c) is correct.

Learn more about caption here:

https://brainly.com/question/10413551

#SPJ3

The data _____ component of a database management system (DBMS) is used to create and maintain the data dictionary.

Answers

Answer:

IDggK

Explanation:

AI is not embraced everywhere in every industry because _______.

Answers

Answer:

See below:

Explanation:

AI is not embraced in every industry because of the type of industry and what it requires. In some situations, a human is needed since an AI cannot determine what to do and can sometimes even cause death.

AI isn't embraced everywhere because for some things we need a person, lets say for example, we need an AI to respond to 911 calls, that simply won't work due to the many situations and training the bot too will be a nightmare. For example, if a caller says a word that normal humans can understand, or a "code word" that every human knows but they haven't bothered to tell the bot, that will be the end of the line for them.

There are mutliple reasons to not use AI depending on the situation whether its life and death or just plain impractical.

4.2.5 codehs text messages answer

Answers

Answer:

public class TextMessage

{

   private String message;

   private String sender;

   private String receiver;

   

   public TextMessage(String from, String to, String theMessage)

   {

       sender = from;

       receiver = to;

       message = theMessage;

   }

   

   public String toString()

   {

       return sender + " texted " + receiver + ": " + message;

   }

}

Please HELP

Which of the following is not a method of data management?
A- sorting
b- filtering
c- formula's
d- graphing

Answers

formula's, Data management does not involve formulas.

What is formula?

A formula is a statement that instructs the computer what mathematical operation to carry out on a given value. Formulas are most frequently used in spreadsheet software, like Microsoft Excel, when referring to computer programs.

What is Data Management?

Data management is the process of gathering, storing, and using data in a cost-effective, efficient, and secure manner. In order to make decisions and take actions that will benefit the organization as much as possible, data management aims to assist individuals, organizations, and connected things in optimizing the use of data within the constraints of policy and regulation. An effective data management strategy is more crucial than ever as businesses depend more on intangible assets to generate value.

To know more about Data Management, check out:

https://brainly.com/question/29310787

#SPJ1

PLEASE HELP! (NO LINKS)

The US Copyright Act gives computer programs the same status as what kinds of work?

Answers

Answer:

C.

Explanation:

In image below.

                                        Have a wonderful day and mark brainliest if I helped,

                                                                   starkitty052010 of Brainly

                                       

Ask what kind of pet the user has. If they enter cat, print "Too bad...", if they enter dog, print "Lucky you!" (You can change the messages if you like). Once this works, add other pets. (Iguana, Pig, Rabbit...)

Answers

Answer:

Explanation:

a = input("what kind of pet the user has")

if a == 'cat':

  print("Too bad")

elif a == 'dog':

   print("Lucky you!")

What type of programing code do game developers use.

Answers

Explanation:

object oriented programming languages like C#, C++, Java are used by developers to develop a game.

it is possible to be logged into a wi-fi network that does not have internet access.

Answers

Answer:

yes it is possible. it'll take some work tho

Explanation:

you would have to bypass the security and disable the proxy and go through the firewall and do some other things to access it

PLEASE HELP ME

(b) When a computer systems RAM becomes full it can use virtual memory.
Explain what happens if the computer does not have any virtual memory.

Answers

Answer:

it won't be able to run

Explanation:

because computer runs on physical memory

If a computer does not have any virtual memory, the consequences of running out of physical RAM can be quite problematic.

When the RAM becomes full, the operating system relies on virtual memory as a way to supplement the physical memory shortage. Without virtual memory, the system would have no way to manage or accommodate the excess data that needs to be stored temporarily.

As a result, the computer would likely start experiencing severe slowdowns, freezing, or crashing when attempting to run applications that require more memory than is available.

In extreme cases, the system might even become unresponsive or display error messages indicating a lack of memory. Virtual memory acts as a safety net, allowing the computer to continue functioning by utilizing a portion of the hard drive as temporary memory storage when physical RAM is exhausted.

Without this essential feature, the computer's ability to multitask and handle memory-intensive tasks would be severely hindered.

Learn more about virtual memory, click;

https://brainly.com/question/30756270

#SPJ3

In object-oriented programming, a data member plays the role of _________. a. an attribute b. a behavior c. either a or b d. neither a nor b

Answers

In object-oriented programming, the object consist of both the data and the functions that operate on the data. In object-oriented programming, a data member plays the role of neither A nor B.

Objects are the product of abstract data types that has inside of it both data and function altogether.

A data member often has different classes. They can be private or public.

Object-oriented programming (OOP) is simply known as a computer programming model that put together software design around data, or objects.

Learn more from

https://brainly.com/question/12342989

How to square a number in java.

Answers

Answer:

num**2

Explanation:

To square a number in Java, you just take the number and use two asterisks (**) to denote an exponent, and then connect a 2 to it.

For example, if your number is 5:

5**2 in Java means 5^2, which is 25.

Just like how 5**3 in Java means 5^3.

Hope this helps.

What happens as a blog's audience grows?
A. It acquires more insurance.
B. Its influence widens.
O C. Its HTML becomes longer.
O D. It acquires more domain names.

Answers

Answer:

ᴀ. ɪᴛ ᴀᴄǫᴜɪʀᴇs ᴍᴏʀᴇ ɪɴsᴜʀᴀɴᴄᴇ.

Explanation:

Hᴏᴘᴇ Iᴛ's Hᴇʟᴘ

Explanation:

[tex]a \: it \: acquiresmore \insurance[/tex]

A. it's acquires more insurance

Specifications What are the best practices you should communicate to the Design team about the formatting of the spec book

Answers

The Spec book, describes a formatted writing which contains the major specifications and description of the building blocks of an application or process. The design process should follow formatting guidelines such as ;

Inclusion of table of content, which gives a table like format of the content in the book within the first 25 pages.

Inclusion of the Spec section number in the header and footer section of each page of the book.

Avoid including any other value with the spec section number. Hence, the spec section number must be distinctly seperated.

Learn more : https://brainly.com/question/25648287

Other Questions
Need help plz ! I'll give 30 points. Having been lied to before, Haley tends to think most people are dishonest. According to research on deception, Haley has a __________. In political cartooning, which animal-concept pairing below is incorrect?A, Bears and RepublicansB. Eagle and FreedomC. Dove and PeaceD. Donkey and Democrats Describe the behaviors apparent for each disorder in this scenario (Attention Deficit Hyperactivity Disorder and Oppositional Defiant Disorder).If this behavior becomes worse and Ryan starts to violate the rights of others, what medical diagnosis will be given and why?Discuss at least two types of medication appropriate to treat Ryan and support your choices with rationale and credible resourcesDescribe why therapy for the parent is important in this scenario including at least two supporting rationales. Can someone help me with this please The South won every major Civil War battle untilthe Battle of Antietam.the Battle of Chancellorsville.the Second Battle of Bull Run.the First Battle of Bull Run what is total charge for -9 and +9? The world population of a certain species is evaluated at 6.8 109. By some projections, this population will be 8 times more important in 30 years. Express the population at that time in scientific notation. Can someone help me find x? it 15 points. i hope its enough..4/5x + 9/10= 5 1/5 The Elements of Music:Beat, Rhythm, Meter, Pitch, Dynamics, Duration, TimbreWhat is the relationship between time and sound in music? Which of the following gases in the atmosphere is not considered a main contributor to the greenhouse effect?. -2 (x+5) = 4use the distributive property to solve the equation Rewrite 2/11 and 1/7 so that they have a common denominator when did the bill of rights become a more central part of how the constitution is interpreted What did the Louisiana Purchase do? It expanded the frontier area to the Pacific Ocean.It added land to the frontier west of the Mississippi River.It limited existing trade networks with the Indigenous People.It forced the Indigenous People to leave the western United States. It is a stage for the listener allowing to integrate in him/herself the information heard Plzzzzz help meeeee plzzzzzzz What is the missing reason in the proof? Statement Reason 1. m || n and p is a transversal 1. given 2. 2 3 2. ver. s theorem 3. m2 = m3 3. def. of congruent 4. 3 7 4. corr. s theorem 5. m3 = m7 5. def. of congruent 6. m2 = m7 6. ? corresponding angles theorem alternate interior angles theorem transitive property subtraction property How did the Quakers get their name? (8.1 + 7.4) 25 2.5