Write a program to sum the odd integers

Assignment Help Basic Computer Science
Reference no: EM13307035

Write a program to sum the odd integers between 1 and 99 using a for statement.

Write a program to print numbers 1 to 50 using a for loop.

Write a program that uses while statement to calculate average of several integers. Assuming the last value read is the sentinel 9999. For example, the sequence 10 8 11 7 9 9999 indicates that the program should calculate the average of all the values preceding 9999.

 

Reference no: EM13307035

Questions Cloud

Find the output impedances of your amiplifer : Design an amplifier using a 741 that has a gain of 20. What are the input and output impedances of your amiplifer
Why is it important for the acquired immune system : Why is it that some people seem to have a 'good' immune system (i.e., they never get sick), whereas others seem to catch every illness that comes along? Given what you have learned so far, which components of the immune system do you think can ..
Use matlab to write a function function : Use Matlab to write a function function, call it fRotate, with a function, an interval, and an angle as its input arguments.
Calculate the initial head loss through a dual-media filter : The porosity of both media is 0.40, the shape factor for the anthracite is 7.5, and the shape factor for the sand is 6.0. Assume a water temperature of 60 F.
Write a program to sum the odd integers : Write a program that uses while statement to calculate average of several integers. Assuming the last value read is the sentinel 9999. For example, the sequence 10 8 11 7 9 9999 indicates that the program should calculate the average of all the va..
Calculate diameter and depth of circular sedimentation basin : Calculate the diameter and depth of a circular sedimentation basin for a design flow of 3800 m3/day based on an overflow rate of 0.00024 m/s and a detention time of 3 hr.
Evaluate the following postfix expressions : Evaluate the following postfix expressions by using the algorithm given. Show the status of the stack after each step of the algorithm. Assume that division is integer division as in java and the identifiers have the following values: a=7;b=3;c=12..
Allele & genotype frequencies assuming hwe : Part a asked to find allele & genotype frequencies assuming HWE.
Determine the pressure head required from the pump : A pump is necessary to lift water from the clear well (reservoir) at a water treatment plant to a storage tower 50-ft high and some distance away. A flow rate of 15 cubic per second (cfs) is required (68F).

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  How do we convert string values keyboard to numeric values

For both console mode and dialog based applications, we need to be able to get keyboard input and convert it to different types of values.

  Storage system that best fits the needs

An information technology recruiting firm has been growing rapidly over the past few years. The number of clients over the past year has quadrupled, and the number of employees has doubled.

  Transform g to an equivalent g'' that has no

Let G be a context free grammar with productions S->ABAC , A->aA|? , B->bB|? , C->d Transform G to an equivalent G' that has no ? productions and no unit productions

  Code works and does what it is suppose to do

Please make sure the code works and does what it is suppose to do. I keep getting answers on my other assignments that were copy and pasted from god knows where and had nothing to do with the assignment instructions.

  Draw a production system

Suppose that you must perform three tasks, X, Y, and Z. You can only do one task at a time, and once that task is done, you never redo it.

  Develope a plan to connect your remote users

As the network administrator of a gr solution owing company, you're asked to solve a remote access dilemma?

  Create an employee class with two fields

Create an Employee class with two fields-IDNum and hourlyWage. The Employee constructor requires values for both fields. Upon construction, throw an ArgumentException if the hourlyWage is less than $6.00 or more than $50.00.

  Write the converse, inverse and contrapositive

Write the converse, inverse and contrapositive for each of the following statement in natural English.

  Write a program that reads a list of numbers

write a program that reads a list of numbers, counts them, and calculates their arithmetic mean, geometric mean, and harmonic mean. These values should be printed with appropriate labels.

  Identify five different it systems

Identify five different IT systems that have affected business in the past few years. For each system, briefly note the following: · A name for the system

  The heating element of a water heater in an apartment

The heating element of a water heater in an apartment building has a maximum power output of 28 kW. Four residents of the building

  Design a combinational circuit

Design a combinational circuit that accepts a 3-bit number and generates a 6-bit binary number equal to the square of the number. Thanks!

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