1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
luda_lava [24]
3 years ago
8

. Write a program that prompts the user for an integer n between 1 and 100. If the number is outside the range, it should keep a

sking the user for a valid number. The program computes and prints at the end two things:
a.The sum of the numbers from 1 to n.
b.The average of the numbers from 1 to n.
Computers and Technology
2 answers:
Arlecino [84]3 years ago
8 0
The sum of the numbers from 1 to ñ
vazorg [7]3 years ago
4 0
A. the sum of the numbers from 1 to n
You might be interested in
Integral 3t+ 1 / (t + 1)^2​
Verizon [17]

Answer:

3ln|t+1|+\frac{2}{t+1} +C

Explanation:

We'll be using u-substitution for this problem.

Let

u=t+1\\du=dt

Substitute

\int\limits {\frac{3u-2}{u^2}} \, du

Split the fraction

\int\limits {\frac{3u}{u^2} } \, du -\int\limits {\frac{2}{u^2} } \, du

Move the constants out

3\int\limits {\frac{u}{u^2}du -2\int\limits {u^{-2}} \, du

Simplify

3\int\limits {\frac{1}{u}du -2\int\limits {u^{-2}} \, du

Integrate

3ln|u|+\frac{2}{u} +C

Substitute

3ln|t+1|+\frac{2}{t+1} +C

5 0
3 years ago
Which type of image is not a supported using the Online Pictures or Insert Picture command?
IgorC [24]

Answer:

HTML  i think

Explanation:

4 0
3 years ago
Read 2 more answers
Which of these is an example of an input?
boyakko [2]

Answer:

typing on a key board

this is the best Ans.

8 0
2 years ago
In the scenario below, select the evaluation factor that is most important.
jasenka [17]

Answer:

A. Connectivity

Explanation:

I just answered this question.

4 0
2 years ago
An initialization expression may be omitted from the for loop if no initialization is required.
stealth61 [152]

Answer:

True

Explanation:

for loop is used to repeat the process again and again until the condition not failed.

syntax:

for(initialize; condition; increment/decrement)

{

    Statement

}

But we can omit the initialize or condition or increment/decrement as well

the syntax after omit the initialization,

for( ; condition; increment/decrement)

{

    Statement

}

The above for loop is valid, it has no error.

Note: don't remove the semicolon.

You can omit the condition and  increment/decrement.

and place the semicolon as it is. If you remove the semicolon, then the compiler show syntax error.

5 0
3 years ago
Other questions:
  • PLEASE HELP ME!!!!
    12·2 answers
  • Fourlotts Corp. provide integrated services that include storing manufactured goods, packaging, and delivering it to the dealers
    13·1 answer
  • Read the section, "Junior Year." Why would someone chose to complete an apprenticeship after high school? How many occupations c
    14·2 answers
  • Given a matrix input_matrix, return a Numpy array that consists of every entry of A that has: an even row index in the range [0,
    9·1 answer
  • Based on​ Sam's description of an information​ system, all of the following are components of an IS except​ _____.
    7·1 answer
  • Write a program that takes paragraph from the user and prints all unique words in that paragraph using strings in c++
    5·1 answer
  • Create a program that allows the user to input a list of first names into one array and last names into a parallel array. Input
    12·1 answer
  • HELP THIS IS SO DIFFICULT
    10·2 answers
  • How many answer can you get daily
    7·2 answers
  • Someone put malware on your computer that records all of your keystrokes. what aspect of security was primarily attacked? choose
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!