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
BARSIC [14]
4 years ago
11

Write a c++ program that reads the contents of a file containing integer numbers, then for

Engineering
1 answer:
Ksenya-84 [330]4 years ago
7 0

The sum of digits C++ program is written below

<u>Explanation:</u>

#include <iostream>  

using namespace std;  

int main()  

{  

int number,sum=0,temp;    

cout<<"Enter a number: ";    

cin>>number;    

while(number>0)    

{    

temp=number%10;    

sum=sum+temp;    

number=number/10;    

}    

cout<<"Sum of the given digit is= "<<sum<<endl;    

return 0;  

}  

You might be interested in
Gn bbys sleep well<br><br><br><br><br> gn
Musya8 [376]

Answer:

mwuah

Explanation:

I got u girl, what r u on?

7 0
3 years ago
Read 2 more answers
Legal metrology would protect consumers from businesses that do not take measurements according to defined measuring regulations
sergij07 [2.7K]

From what my research concluded, true

5 0
4 years ago
Find the magnitude of the two pulling forces P and Q when their resultant is 50 N at 20° with Q. P 20°​
morpeh [17]
Two forces P and Q whose resultant is 10Newton are at right angles to each other. If P makes 30 degrees with resultant.Show me the workings of the magnitude of Q in Newton and the diagram of the vectors.
7 0
3 years ago
Type the correct answer in the box. Spell all words correctly.
SSSSS [86.1K]

Answer: Type the correct answer in the box. Spell all words correctly.

Which design principle indicates disparity between adjacent parts of a design to give it a striking overall look?

-blank- is disparity between adjacent parts of a design to give it a striking overall look.

Explanation:

8 0
2 years ago
Over 30 day period, a lake surface area is 1260 acres. The inflow is 36 cfs, thee outflow is 30 cfs. Seepage loss is 1.5 in. The
Elis [28]

Answer:

  -0.1 inches

Explanation:

The net inflow is ...

  36 cfs -30 cfs = 6 cfs

The number of seconds in 30 days is ...

  (3600 s/h)(24 h/da)(30 da) = 2,592,000 . . . . seconds/(30 days)

Then the volume of inflow is ...

  (6 ft^3/s)(2,592,000 s) = 15,552,000 ft^3

The number of square feet in 1260 acres is ...

  (1260 ac)(43560 ft^/ac) = 54,885,600 ft^2

So, the increase in depth due to the inflow is ...

  (15,552,000 ft^3)/(54,885,600 ft^2) ≈ 0.283353 ft ≈ 3.4002 in

__

The net change in water level is then ...

  inflow - seepage + precipitation - evaporation

  3.4 in -1.5 in +4.0 in -6.0 in = -0.1 in

The water level change in the period is -0.1 inch.

5 0
3 years ago
Other questions:
  • In the event of a crash, Personal Injury Protection (PIP) coverage pays toward the medical costs for _____.
    6·1 answer
  • Make a proposal to add a small pizza shop to a historical part of town. How could it be designed to “fit” into the area?
    7·2 answers
  • A 1-m long, thin symmetric airfoil is placed at a free stream. Calculate the drag force for the wind speed of 150 m/s. Assume th
    7·1 answer
  • Cuál de las siguientes es la mejor manera de practicar sus habilidades de tecnología de secundaria?
    9·1 answer
  • A compressor receives 0.1 kg / s of R-134a at 150 kPa, − 0 ° C and delivers it at 1200 kPa, 50°C. The power input is measured to
    12·1 answer
  • Design a 7.5-V zener regulator circuit using a 7.5-V zener specified at 10mA. The zener has an incremental resistance of rZ = 30
    15·1 answer
  • Which of the following is most characteristic of OSHA's relationship with professional trade organizations in residential constr
    8·1 answer
  • Inductors in series obey the same formula as resistors in series. That is, if you connect two inductors are in series, the equiv
    12·1 answer
  • Which of the following elements found in fertilizer helps plants produce fruit?
    15·2 answers
  • consider a simple ideal rankine cycle with fixed boiler and condenser pressures. what is the effect of superheating the steam to
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!