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

  Design a modified priority encoder

Design a modified priority encoder that receives an 8-bit input, A7:0, and produces two 3-bit outputsm Y2:0 and Z 2:0 Y indicates the most significant bit of the input that is TRUE

  Write a method switchpairs that switches the order

Write a method switchPairs that switches the order of elements in a linked list of integers in a pairwise fashion. Your method should switch the order of the first two values, then switch the order of the next two, switch the order of the next two..

  Scrum vs plan-based software development strategies

Scrum vs. Plan-Based Software Development Strategies

  Convert the decimal integer

Convert the decimal integer -24 to 16 bit and 32 bit two's complement hexadecimal representation. show your calculations.

  Write program that will calculate square and cube of numbers

Write a program that will calculate square and cube of numbers ranging from 0 to 10. Print the output like the following table (hint: use for loop, to print as a table use printf formatting for width).

  Write the method getlongestrun that takes as its parameter

Write the method getLongestRun that takes as its parameter an array of boolean values representing a series of coin flips. The method returns the starting index in the array of a run of maximum size

  Who delivers supplies to its customer

In what ways does IT planning help managers exercise control in a situation? Does IT impact the truck driver of a company who delivers supplies to its customer?

  How many block of main memory is needed-direct mapped cache

Suppose a computer using direct mapped cache has 2^32 words of main memory and a cache of 1024 blocks, where each cache block contains 32 words. How many block of main memory are there?

  What extent do specific technologies help companies

More generally, to what extent do specific technologies help companies gain an edge over their competitors? How easy or difficult would it be to initiate such advantages

  Compare and contrast the following, in terms of cores

Compare and contrast the following, in terms of cores (or microprocessors), random access memory (RAM), disk storage, and networking capabilities. Supercomputers, Mainframe computers , Desktop, computers, Laptops, Handheld computers

  Calculate present value of future earnings

Why do we need to calculate the present value of future earnings? A company can invest $100,000 to develop a new system, or it can put that amount into a second best alternative investment getting 10 percent.

  What do you mean by ascii or ebcdic

What is ASCII or EBCDIC? What part do the aforementioned things play in hashing? What is the formula for the PPD? What does the numerator and denominator say about the potential performance issues of this metric?

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