What is the output from the following c++ code fragment

Assignment Help Basic Computer Science
Reference no: EM13235025

What is the output from the following C++ code fragment if the following values are the inputs to cin? 38 35 71 14 -1 int sum, num; sum = 0; cin >> num; while(num != -1) { sum += num; cin >> num; } cout << "Sum = " << sum << endl; 5. Write a do - while loop to get 20 numbers from the user and sum them together. Output the sum after the loop. Declare any variables you need.

Reference no: EM13235025

Questions Cloud

Calculate bobs economic profits at the activity level : Competitive Strategy. Bob Ice owns and operates Bob's Music Center, Ltd., a small firm that offers music lessons in Huntsville, Alabama. Given the large number of competitors and the lack of entry barriers
What is the maximum height the ball goes above the ground : A soccer ball is kicked with an initial horizontal velocity of 18 m/s and an initial vertical velocity of 13 m/s, What is the speed of the ball 0.8 seconds after it was kicked, What is the maximum height the ball goes above the ground
Explain what mass of sodium formate is required : You need to produce a buffer with pH = 4.1 by dissolving a weighed amount of sodium formate (FW = 68.0072) in 500-mL of 0.45-M formic acid
Calculate the nash equilibrium contributions for each firm : Two construction companies are lobbying to obtain a share of work on repaving city streets. The share of the project going to each firm depends on money contributions to the mayor's reelection fund. The project has value V in total.
What is the output from the following c++ code fragment : What is the output from the following C++ code fragment
Explain salt bridge completes the electric circuit : If you are performing a Zinc-Copper Galvanic Cell where Zn is the Anode and Cu is the cathode and you soak the salt bridge with a saturated ammonium nitrate solution, in which direction would the ammonium ions move when the salt bridge completes t..
Find the standard time for the process : On the basis of these observations, find the standard time for the process and they also believe that there will be an 80% learning rate. How many hours of labor should Joe include for his bid?
What is the output from the following c++ code fragment : What is the output from the following C++ code fragment
Find the speed of the plane : A 0.58 kg toy airplane is suspended from the ceiling by a 1.6 m cord and rotates in a horizontal circle, Find the speed of the plane, Find the tension in the cord

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd