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

  Creating flowchart of data found on employee time cards

Create a flowchart depicting the following situations: The data found on employee time cards are keyed onto a hard disk before they are processed by a computer.

  Write a program that displays four lines of text in four lab

Write a program that displays four lines of text in four labels

  Find the fraction of the conversion

Hint: use the logical operators to combine the 3 pins into one number, then divide that number by 8 (23) to find the fraction of the conversion and multiply that by 5V which would be the Arduino operating voltage.

  How many bit comparisons are made

How many bit comparisons (both successful and unsuccessful) are made by the brute-force string-matching algorithm in searching for the pattern 11001 in a binary text of 500 ones?

  Estimate maximum aggregate i-o transfer rate in system

Estimate the maximum aggregate I/O transfer rate in this system. Hint: Only one device at a time can be serviced on a selector channel.

  File contains data for an individual wedding album

Each line of this file contains data for an individual wedding album and delivery. These data  are used to determine the total cost of producing and posting a batch of albums to a  customer. Each column of this file contains values for the following..

  Write a procedure that updates all the payment dates

Write a procedure that updates all the payment dates to the current date + 10 days for a given student (name) in the invoice table using cursors. (Will you need a schema? How do i send it to you ? do you need just the tables for the student and th..

  Determine decimal value on big-endian machine

A 32-bit word on the little-endian computer has decimal value of 261. Determine its decimal value on big-endian machine?

  Show how mips can implement the instruction swap

Show how MIPS can implement the instruction swap $rs $rt, which swaps the contents of registers $rs and $rt. Consider the case in which there is an available register.

  Explain why the files are not the same size

If three text files contained in Assignment 4 Files.zip each contain the same information; however, the file sizes are not the same. Explain why the files are not the same size

  Explain radio frequency identification technology

Write discussion of radio frequency identification (RFID) technology and Information Technology Infrastructure Library (ITIL) standards.

  Determine the monthly charges for checking accounts

he billing department at the bank has asked for your team's help. They want to develop a program that will determine the monthly charges for checking accounts.

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