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

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

What is an IF statement used for?

Answers

The IF statement is a decision-making statement that guides a program to make decisions based on specified criteria. The IF statement executes one set of code if a specified condition is met (TRUE) or another set of code evaluates to FALSE.

we are unable to process your request at this time. if you continue to receive this error, please contact cardholder services by calling the number on the back of your card.

Answers

Answer:

is this a sim chip card replacement card for Electronics ?

Explanation:

I need help with this question.

Fill in the blank with the correct response.
When an app seems to have a personality, we say it has ____

Answers

The answer is persona

Why do
ve need to add movies in our slide?

Answers

Answer:

movies are awesome! LOL but i dont understand your question...sadly.

Explanation:

We use the keyboard to point, click, and select menus and icons, and for onscreen navigation. True or False

Answers

Answer:

False.

Explanation:

Hope I could help. Hey, have a nice study time.

Answer:

false

Explanation:

we use our keyboard to type not click icons or point.

1. Which software is used mostly for typing text? a) Word b) Excel O c) PowerPoint o d) Paint​

Answers

Answer:

a. Word

Explanation:

Microsoft Word is the most widely used word processing software according to a user tracking system built into the software.

Answer: a) Word

Explanation: Microsoft Word is the most widely used word processing software.

A common attack in which a client's cookies, security tokens, or other personal information is obtained and used to impersonate the user is referred to as

Answers

Answer:

Identity Theft. i hope this helps :D

What access-point feature allows a network administrator to define what type of data can enter the wireless network?

Answers

Traffic filtering. It’s name is self-explanatory!

In a complex formula, how does excel determine which calculation to perform first?.

Answers

In a complex formula, the way excel determines which calculation to perform first is that; It follows the order of operations.

When carrying out calculations in excel, if we don't bracket certain operations, excel will use the order of operation called BODMAS to determine which operation to carry out first.

For example, if excel wants to solve 3 × 4 + 7 - 2;

The acronyms in BODMAS stand for;

B - Brackets

O - Orders (powers/indices or roots)

D - Division

M - Multiplication

A - Addition

S - Subtraction

Now, it means that the first action it will perform is Bracket while the last will be subtraction.

In our example, excel will first use the multiplication sign to get;

(3 * 4) = 12

Then addition; 12 + 7 = 19

Then subtraction; 19 - 2 = 17

Read more on BODMAS at; https://brainly.com/question/16788360

Select the correct text in the passage.
Which three phrases describe a wireframe?

Tracy uses a (pictorial summary of an entire website) in her team meeting. It is a (two-dimensional illustration) of how (each web page on a website will look.) Known as a workflow diagram, this (explains how pages in a website connect to one another.) It is a (design tool), and it (shows the overall framework of a website.) It is a (visual representation of how much space each element on a page should take.)

Answers

Answer:

A B D

Explanation:

Bob has started a company and registered its name with the government as a private corporation. He tries to create a domain name using that registered name along with his country code. The name has already been registered by someone else. What should Bob do

Answers

Answer:

bobo

Explanation:

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

                                       

Angular when to use reactiveformsmodule.

Answers

Answer:

Image result for Angular when to use reactiveformsmodule.

In summaries, if forms are very important for your app, or reactive pattern are used in your app, you should use reactive forms. Otherwise your app have basic and simple requirement for forms such as sign in, you should use template-driven forms

Explanation:

Each form has a state that can be updated by many different interactions and its up to the application developer to manage that state and prevent it from getting corrupted. This can get hard to do for very large forms and can introduce a category of potential bugs

Would my phone still work if I snapped it in half?

Answers

Probably not
Not a good idea my friend

Depends on if you wanna get it repaired or not

In older languages, you could leave a selection or loop before it was complete by using a ____ statement

Answers

Answer:

D) go to

Explanation:

A) next

B) go next

C) loop

D) go to

D) go to is correct answer

(Hope this helps can I pls have brainlist (crown)☺️)

Other Questions
I have no idea how to do these plz help and plz make sure its right because I only have 5 questions and will mark brainiest:) How to find slope intercept form without a point. Which of the following statements is true of postmodern cultural spaces. What did delegates for a strong national government believe? The length of a rectangle is three times its width. if the area of the rectangle is 75 in2, find its perimeter. Immigrants added to population growth of America in the late 1800s. True False Chitin is all of the following EXCEPT ________. Found in insect and crustacean shells Composed of N-acetylglucosamine subunits Composed of linear fibrils like cellulose Found in plant cell walls Help.....Me...........PLEASE How can someone be nominated as a presidential candidate? Molly can received her weekly paycheck and she earned a total of $339.25. If she makes$14.75 per hour, how many hours, h. did she work? prosz o pomoc w napisaniu sprawozdanie pt. "Dziady" An unknown element sample has 2 isotopes present. The first isotope has a mass of 6.017 amu and is7.30% abundant. The second has a mass of 7.018 amu and an abundance of 92.7%. Calculate theaverage atomic mass of this element I need help pls I'll give brainliest!!!!!!!!!!!!!!!!!!!!!! What story does the game Senet tell? What is the slope for M(4,-8 negative) N(6,-1 negative) Find the area of the composite figure made up of a square and a semicircle. Use 3.14 as an approximate for pi and give your nearest square inch. Enter only the number. Please take a look at the picture A machine depreciates by 1/4 of its value each year. If it cost $50,000 new,what is its value after 8 years? Which postulate or theorem proves that these two triangles arecongruent?O ASA Congruence PostulateO AAS Congruence TheoremO HL Congruence TheoremO SAS Congruence Postulateo 7. A bus covers a certain distance in 60 minutes if it runs at a speed of 60 km/hr.What must be the speed of the bus in order to reduce the time of journey by 40minutes?