Write a program that uses a while loop to compute

Assignment Help Basic Computer Science
Reference no: EM13322284

Write a program that prints the numbers from 1 to 50 using a for loop. Rewrite the program using a do -while loop.

Write a program that uses a while loop to compute and print the sum and the average of the numbers entered from the keyboard one at a time.The program stops when the value entered is -99.

 

Reference no: EM13322284

Questions Cloud

Find the potential difference between the end of the wire : The electric field inside a 28.41-cm-long copper wire is 0.021 V/m. What is the potential difference between the end of the wire
Determine what would be the expected flow velocity : A 12-in diameter concrete culvert (n=0.013) flows half full and is constructed on a grade of 0.5 %. What would be the expected flow velocity
Determine what is the rate of discharge with rubble masonry : A 5-m wide rectangular open channel lined with rubble masonry (n=0.025) and laid on a slope of 0.0004. If the depth of flow is 3 m, what is the rate of discharge (m3/s)
Berkshire inc. uses a periodic inventory system : Berkshire Inc. uses a periodic inventory system. At the end of 2012, it missed counting some inventory items, resulting in an inventory understatement by $600,000. Assume that Berkshire has a 30% income tax rate and that this was the only erro..
Write a program that uses a while loop to compute : Write a program that prints the numbers from 1 to 50 using a for loop. Rewrite the program using a do -while loop.
Find range of values of p for which equilibrium is maintain : knowing that the coefficient of static friction between the collar and the rod is .35, determine the range of values of p for which equilibrium is maintained when 0=50deg and M=20Nm
What is the resistance of the composite wire : A 137-cm-long wire is made by welding a 1.3-mm-diameter, 26-cm-long copper wire to a 0.31-mm-diameter, What is the resistance of the composite wire
What is the controlling interest in consolidated : 40. Keefe Inc, a calendar-year corporation, acquires 70% of George Company on September 1, 2014, and an additional 10% on January 1, 2015. Total annual amortization of $6,000 relates to the first acquisition. George reports the following figur..
How a non-it senior manager would arrive at the decision : Describe the process of how a non-IT senior manager would arrive at the decision to support one IT diffusion model over another. List the factors that would have to be considered. Determine which model you would choose and explain why.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create an html5 document that contains an unordered list

Create an HTML5 document that contains an unordered list with links to the following examples headings, email, images as hyperlink these are from textbook, special characters, tables, HTML5 forms, and internal links to be included

  Explain main resources in management information systems

The three main resources in management information systems (MIS) are information, information technology, and people. Which of these three resources is the most significant?

  Explain whetherucita should or should not be adopted

What are your arguments in support of these points? You really did not answer the question as these don't really explain whether you believe the UCITA should or should not be adopted.

  Explain size of new working set system designers

Suppose a process changes its locality and size of new working set is too large to be stored into available free memory. What are some options system designers could choose from to handle this situation?

  What to consider before selecting product for system

National Information Assurance Partnership website, why is this not enough to just say "this product meets our security requirements"? Discuss what else you have to consider before selecting such a product for a system.

  Write the definition of a class clock

Write the definition of a class Clock . The class has no constructors and three instance variables. One is of type int called hours , initialized to 12 , another is of type boolean called isTicking , initialized to true , and the last one is of ty..

  Hat mechanism would you implement in the process

what mechanism would you implement in the process scheduler to automate the termination of a job thats in an infinite loop? take into account jobs that legitimately use large amounts of CPU time, for example, one "finding the first 10,000 prime nu..

  Draw a circuit which implements a 1-to-2 decoder

Q1. Write the truth table for a 1-to-2 decoder. Draw a circuit which implements a 1-to-2 decoder using AND gates, OR gates and NOT gates only.

  Differences between technical and technology skills

Describe in scholarly detail differences between technical and technology skills as they associate to telecommunications and how they relate to general expectations

  Write a sql statement to list the sequence owner and name

Write a SQL statement (not a DESCRIBE) to list the sequence owner and name for all of the sequence objects available to you.

  Consider an rgb raster system and color lookup table

Consider an RGB raster system that has a 1024 by 800 frame buffer with 16 bits per pixel and a color lookup table with 24 bits per pixel.

  Write a brief statement on how you would address components

Assume that a security model is needed for the protection of information i your class. Using the CNSS model examine each of the cells and write a brief statement on how you would address the components represented in that cell.

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