Write the same program using a for-loop

Assignment Help Computer Engineering
Reference no: EM13708739

Question: Write a program with a while loop to print 1 to N in square brackets. N is an integer input from the user.

Part 1: Write the same program using a for-loop

Part 2: Write the same program that will display only the even numbers and odd numbers from 1 to N.

Can you please help me? I don't know what to do to write this C++ program.

 

Reference no: EM13708739

Questions Cloud

Formal risk assessment of the external server : As part of a formal risk assessment of the external server in a small Web design company, you have identified asset "integrity of the organization web server and the threat hacking and defacement of the web server.
Explain what is the percent purity of aspirin in the sample : Question- 1.) If your Aspirin sample did not dry completely and contained water in the sample would it require more or less NaOH solution to reach the endpoint of the titration?
Find the volume of each cylinder : Suppose that you are building 5 cylindrical nuclear reactors of various diameters. Ask the user to input height and diameter of each cylinder.
Write a balanced equation for the combination reaction : Question- Write a balanced equation for the combination reaction described, using the smallest possible integer coefficients. When sulfur dioxide combines with oxygen, sulfur trioxide is formed.
Write the same program using a for-loop : Write the same program using a for-loop - write the same program that will display only the even numbers and odd numbers from 1 to N.
Write the balanced net ionic equation for the reaction : Question- The following molecular equation represents the reaction that occurs when aqueous solutions of lead(II) nitrate and barium chloride are combined. Pb(NO3)2 (aq) + BaCl2 (aq) PbCl2 (s) + Ba(NO3)2 (aq)
Can you find the 2s complement of the given numbers : Perform the given operations and identify, in each case, whether or not an overflow occurs:
What weight of magnesium chloride must be weighed out : Question- A solution, in which the magnesium concentratio is 50mg/L, is needed. The source of magnesium ions is magnesium chloride. If 1.5L of the solution is needed, what weight of magnesium chloride must be weighed out. (FW of Mg is 24.305g/mol ..
Dynamic array of a string that takes in names : Can you please show me an example of a C++ Class that has a dynamic array of a string that takes in names by user input??

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a mips assembly language program to recursively

Write a MIPS assembly language program to recursively compute the nth term of Perrin's sequence. n will be input from the keyboard. And please do not copy and paste from google results because I have already tried searching there.

  Write a c function named change that has a floating point

Call the function change from main function three times and print out the contents of the variables quarters, dimes, nickels, and pennies after each function return.

  Write down specification for the adt as a java interface

Write down specification for the ADT as a java interface

  Questionyour company will be implementing a hybrid cloud

questionyour company will be implementing a hybrid cloud solution for processing and storage of personnel records.a.

  Write the structural vhdl code to implement device

Two voltage and two current sensors indicate measured voltage with 16-bit binary values on their output lines, S15 to S0.

  What are the potential consequences for a company which has

what are the potential consequences for a company that has data that is not secure? do some research and describe some

  Summarize the challenges the team faced

Create a 10 - 15 pages PowerPoint presentation with audio narration which covers 1 - 4. Each member needs to add audio presentation at least for his/her selected risk.

  Which two are valid constructors for thread

Can you tell which constructor is valid? Give the answer of given question and also give details.

  1 give an example of how efforts in the development of

1. give an example of how efforts in the development of software can pay dividends later in software maintenance.2.

  Define the structures and properties of carbohydrates

Carbohydrates, lipids, and proteins are important biomolecules. explain the structures and properties of carbohydrates, lipids, and proteins including the different forms of these biomolecules that are present within the body.

  United parcel services operations are driven by its

after reading chapter one watch the video real media player can be downloaded for free at www.real.com and read the

  Generate a work breakdown structure code

Generate a Work Breakdown Structure Code

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