Write program that computes the sum of the even numbers

Assignment Help C/C++ Programming
Reference no: EM131216282

Computer Programming Assignment-

Q1. Using for loop, write a C++ program that prints out the multiples of 3 up through 75, separated by a blank space. 

3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72 75 

Q2. Using a while loop; write a C++ program that computes the sum of the even numbers 2 through 100. 

2 + 4 + 6 + 8 + ... + 98 + 100

Store the value in a variable called sum and display sum. 

Q3. Write a C++ program that uses a do while loop to sum the numbers from 1 to 10 and prints the result like this: 

Q4. Write a C++ program that allows a user to populate a one dimensional array that takes 8 integers. The program should then compute and print out the maximum value in that array. (Use if-else statement to determine the maximum value) 

Q5. Create a 2 dimensional array of any data type. Use for loop to display all the elements of the array?

Reference no: EM131216282

Questions Cloud

State and explain a key objection to your position on issue : Provide your position on the issue in the articles assigned to you. State and explain a key objection to your position on this issue. Despite the objection, develop a counterargument to defend your position.
Compute thevenin equivalent circuit as seen by load resistor : Determine the Thevenin equivalent circuit as seen by the load resistor RL for the circuit given below. Find the load resistance for maximum power transfer in this circuit.
Estimate of the total misstatement in? inventory : You are evaluating audit results for assets in the audit of HalosHalos Manufacturing. You set the preliminary judgment about materiality at $50,000. Assume you tested inventory amounts totaling $1,250,000 and found $12,500 in overstatements. Ignoring..
Write the approximation as an equation : Independent samples are taken of a random variable X.- If the PDF of is uniform over the interval - Write the approximation as an equation.
Write program that computes the sum of the even numbers : CSC11 - Computer Programming Assignment. Using a while loop; write a C++ program that computes the sum of the even numbers 2 through 100
Assume materiality for the financial statements : Assume materiality for the financial statements as a whole is? $100,000 and performance materiality for accounts receivable is set at? $40,000. If the auditor finds one receivable that is overstated by? $55,000, what should the auditor? do?
Explain the physical significance of those parameters : What other sets of parameters are commonly used to characterize the optical properties? Why are there always "sets" of parameters?
Develop a consolidated financial projection of revenue : Develop a consolidated financial projection of revenue, pretax income, and cash flow for the overall business, over that same number of years, both with and without the proposed investment.
Financial statements relating to depreciation : Describe how the property, plant, and equipment of the company is presented on the Balance Sheet. Find the note that follows the financial statements relating to depreciation and state in your own words the method of depreciation that your company us..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Perform operations on arrays

Perform operations on arrays execute tests and repetitions

  Declare a 1-dimensional array of integers

In pseudocode and in C code, declare a 1-dimensional array of Integers called InternetHits that will hold up to 10 Integer values representing the number of hits a Web site receives.

  Write a program that declares an array of 10 integers

Write a program that declares an array of 10 integers. Write a loop that accepts 10 values from the keyboard, and write another loop that displays the 10 values. Do not use any subscripts within the two loops; use pointers only.

  Load in the household configuration file

The first thing the program is required to do is load in the household configuration file, with the following  filename: housecfg.dat

  Which of the following assignments are valid

Which of the following assignments are valid? If an assignment is not valid, state the reason.When not given, assume that each variable is declared.

  Implement a function to recursively

Implement a function to recursively determine if a word is a palindrome. A palindrome is a word, phrase, number, or other sequence of symbols or elements, whose meaning may be interpreted the same way in either forward or reverse direction.

  Problems related to math power

Write a public static function named power that takes in two integers, a and b, and returns a^b, the first argument to the power of the second argument. You may NOT use Math.pow(), because that would be boring.

  Write a very basic doubly-linked list

CptS 122 Lab #2: Linked Lists ,  Along with vectors, linked lists are one of the fundamental data structures in computer science. Unlike vectors, which store information in a contiguous block of computer memory, linked lists have the potential to sto..

  Design an employee class

Design an Employee class that has fields for the following pieces of information: Employee Name and Employee Number

  C++ program to convert any base 10 number v to any base b

Write a C++ program that will convert any base 10 number v to any base b. Input two values, the first is the base 10 number and the second value is the base that the base 10 number v is to be converted to. The base can only be between 2 and 9. Inv..

  Make the program as efficient as possible

Write a Forms application, using loops, that generates the following diamond pattern when the button is clicked. For your output, use a multi-line textbox with the TextAlign property set to Center. Make the program as efficient as possible! You ca..

  Implement a simple calculator program

Implement a simple calculator

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