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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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