Write down a code segment using a while loop

Assignment Help Computer Engineering
Reference no: EM1331433

Would you help me with the following two questions?

1. Write a code segment using a while loop that outputs the numbers from -10 to 10.

2. Write a looping code segment that takes as input up to 20 integer scores from file indata, and outputs their average. if the file contains fewer than 20 scores, the segment should still output the correct average. if the file contains more than 20 scores, the additional numbers should be ignored. be sure to consider what a happens if the file is empty.

Reference no: EM1331433

Questions Cloud

Prepare a summary of the client organization : Prepare a summary of the client organization using a significant issue you are considering for your Consultant Proposal.
Why would you recommend a multi-core cpu : Discussion is designed to help you know the roles of hardware and software components in a modern computer system. For the purposes of this Discussion, assume that you are heading a team of 25 people working on a software development project.
Training programs used within your organization : Human Resource Development - Write about training programs used within your organization
Client capabilities and commitment : Credibility and influence are vital components for success as a performance consultant as well as successful completion of any consulting project. Use the "Client Capabilities and Commitment" Assessment on p. 97 - 98 in the Field Book.
Write down a code segment using a while loop : Write a code segment using a as loop that outputs the numbers from -10 to 10.
History of carlos marighella : Who was Carlos Marighella? Looking for help on a Bio and history.
Explaining professional point of view of articles : Compare and contrast each article. Which of these articles do you find more relevant from a professional point of view and why?
Strategic alliances as a way of exchanging resources : Show the motivation or organizations to form interorganizational linkages and the advantages of strategic alliances as a way of exchanging resources.
What would he buy the health insurance at a premium cost : What would he buy the health insurance at a premium cost of $1,500? Why or why not. What implications can be drawn from the analysis.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Define the benefits of network segmentation

describe each mechanism's approach for connections establishment and termination.define the benefits of network segmentation.

  File descriptor

A file whose file descriptor is fd consists of the following sequence of bytes: 2, 7, 1, 8, 2, 8, 1, 8, 2, 8, 4. The following system calls are made: seek( fd, 3, SEEK_SET ); read( fd, &buffer, 4 );

  Describe how logical and physical representations

explain how logical and physical representations of a To-Be system will differ.

  Cost estimate may be made from the plan

Discuss in detail what they should do and grow a step-by-step plan for them. Make sure you reference your statements, not just a list of sources at the bottom of your post. When you post, make sure you state both "what" should be done as well as t..

  Write down program that models an employee

Write down program that models an employee

  Write the bubble sort

The village of Marengo conducted a census and collected records that include household data, including the number of occupants in each household.

  Describe what you consider to be some attributes

explain what you consider to be some attributes of a well-written program. What would you look for when reviewing a programmer's code during a quality assurance review.

  What is the word describe sql

what is the word describe SQL

  When the user presses the start button

When the user presses the start button, a menu display of potential destinations is activated along with a message to user to choose a destination.

  Definition of method dashedline

Write down the definition of the method dashedLine , with one parameter, an int. If parameter is negative or zero, method does nothing.

  What is an interface

What is an interface

  What variety of cable will work to make an association

What variety of cable will work to make an association

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