CSE 1321L Programming and Problem Solving Assignment

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

CSE 1321L: Programming and Problem Solving I Lab

Lab 6

Loop Structures

Exercise #1: Design and implement a program (name it PrintSum) that prompts the user for an integer values between 1 and 100. The program then uses a while loop to determine and print out the sum of all values between 1 and the entered value. The program rejects invalid input values with proper message such "Invalid Input. Try again." Document your code and properly label the input prompt and the outputs as shown below.

Sample run 1:

You entered: 10
Sum of values: 55

Sample run 2:

You entered: 120
Invalid input. Try again.

Sample run 3:

You entered: 20
Sum of values: 210

Exercise #2: Design and implement a programming (name it EvenOdd) that uses a while loop to determine and print out all even numbers between 50 and 100 on a single line, separated by commas. Then another while loop in the same program to print out all odd numbers between 50 and 100 on a new line, separated by commas. Document your code and properly label the outputs as shown below.

Even numbers between 50 and 100: 50, 52, 54, 56, 58, 60, 62, 64, ...

Odd numbers between 50 and 100: 51, 53, 55, 57, 59, 61, 63, 65, ...

Exercise #3: (RandomNumbers) Write a for loop that will generate and display 10 random numbers from 1 to 50. Output all of the randomly generated numbers.

Instructions:

1. Programs must be working correctly.
2. Programs must be completed and checked before working the assignment.
3. Programs must be checked by the end of the designated lab session.

Verified Expert

The task of the assignment is to develop 3 C# programs.First program is to received the input number from user determine sum of number from 1 to n and display their sum.The second program list of even and odd numbers between 50 and 100.The third program is to display 10 random numbers between 1 to 50.The output is documented and code is well commented.

Reference no: EM132377295

Questions Cloud

Write an essay on reflective practitioner : Write two essays. Each essay will address one component of the conceptual framework. Have a minimum of 3 resources and the essay should be between one.
What are the implications of not being free : Can we get rid of the concept of ‘freedom' from our vocabulary. Why? Why not? Use elements of Chapters 8 and 9 of the Rachels text to support your claim.
MITS5501 Software Quality, Change Management and Testing : MITS5501 Software Quality, Change Management and Testing Assignment Help and Solutions - Victorian Institute of Technology, Australia - Critique on the paper
What did you learn from the project : Have you ever participated in a photovoice project? Can you describe the project? What did you learn from the project? If you haven't participated.
CSE 1321L Programming and Problem Solving Assignment : CSE 1321L - Programming and Problem Solving Assignment help and solution, Kennesaw State University Homework help - Design and implement a program
Write about your reflections on concept of sustainability : Consider the implications of these at a personal level e.g. what may have changed your thinking; what action may you take as a result of new thinking?
How you handle event selection for your athletes : Please watch the attached presentation titled: "Building Your Inner Coach." After viewing this very informative presentation by Brett Ledbetter.
Differences in various reformation movements and churches : Describe and discuss the differences in the various Reformation movements and churches that emerged during the 16th century.
Analyze the proficiency level data to place the students : Analyze the proficiency level data in the "Ms. Jensen's 7th Grade Class AZELLA Scores" document to place the students into appropriate groups.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Implement the ADT Data Structures

Provide test cases that shows the implementation of all the functions of the stack - Provide test cases that shows the implementation of all the functions

  Explain roles of hardware and software components

Discussion is designed to help you understand the roles of hardware and software components in a modern computer system. For the purposes of this Discussion, assume that you are heading a team of 25 people working on a software development project..

  Describes the application of the s4 symmetry operation

(a) Using its x, y, and z coordinates, construct a 15 × 15 matrix that describes the application of the S4 symmetry operation to [PtCl4]^2-.(b) What is the character of this matrix?

  Write a program to draw a symmetric shape of your own

Write a program to draw a symmetric shape of your own using C++ user-defined functions and arrays. The program should draw a shape in its original and opposite forms (black and white and then white and black).

  Change the name of the function that displays your name

Change the double quotes that enclose the Hello, world! message to single quotes - Change the name of the function that displays your name

  You are to create a program

You are to create a program that will input a group of floating point values, storing them as double values in an array. This array will then be sent to three functions.

  Prepare the program to calculate the future investment value

Write a C++ program that reads in investment amount, annual interest rate, and number of years in this order, and displays the future investment value using the subsequent formula:

  Create a square using the tangram pieces

Explain your design and implementation process and any challenges you came across, as well as how they were overcome at the end

  Write a program that prints minimax and maximin of a matrix

The optimal strategies are possible when these two values are equal. Write a program that prints the minimax and the maximin of a given matrix.

  That reads ten numbers from input and prints

Write a C program that reads ten numbers from input and prints them in reverse order. We assume that the data consists of integers. The program should conform to the following format

  Implement a second-order low-pass filter

Implement a second-order low-pass filter using the finite difference method. The finite difference method is a useful mathematical method that is used to numerically solve differential equations.

  The insertion point located at the end of the numbered list

With the insertion point located at the end of the numbered list, insert a Basic Chevron Process SmartArt-under Process, in the fifth row, the second layout. In the first shape, type View. In the second shape type Interact and in the third shape type..

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