Develope a program including the program description

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

Overview:

This hands-on lab allows you to follow and experiment with the critical steps of developing a program including the program description, Analysis, Design(program design, pseudocode), Test Plan, and implementation with C code. The example provided uses sequential, selection and repetition statements.

Program Description:

This program will calculate the sum of 3 integers. The program will ask the user to 3 integers. If the sum of the numbers is greater than 100, a message is printed stating the sum is over 100. The design step will include both pseudocode.

Analysis:

I will use sequential, and selection programming statements.

I will define four integer numbers: value1, value2, value3 and sum.

The value1, value2, value3 variables will store the integers input by the user. The sum will store the sum of the 3 values.

The sum will be calculated by this formula: sum = value1 + value2 + value3

For example, if the first values entered were 1,2, and 3 respectively: sum = 1 + 2 + 3 = 6

The additional selection statement will be of this form:

If sum > 100 then

print "Sum is over 100" End If

Program Design:

Main

// This program will calculate the sum of 3 integers.
// Declare variables
// Initialize variables

//Prompt user for a number1
//Get user response

//Prompt user for a number2
//Get user response

//Prompt user for a number3
//Get user response

//Calculate sum

// Print results - sum

//Print remark based on value of sum End //End of Main.

Attachment:- Lab.rar

Reference no: EM131232592

Questions Cloud

Commence a new research project : You are about to commence a new research project in a field of your choice. You are expected to write a report that constitutes a research proposal.
Production of unique products for market testing purposes : Company X serves the Research and Development community which requires the production of unique products for market testing purposes. The order size is often very low--may be as low as just one or two items--and most may never be produced again. An a..
Describe your experience installing the microsoft office : Describe your experience installing the Microsoft Office Suite software. Indicate the version of the software that you installed, and the name and version of the operating system that you used.
Managers respond to uncertainty caused by competition : Today's managers are likely to encounter uncertainty due to all of the following EXCEPT : Why might attending trade shows enable managers to respond to uncertainty within an industry?  Which of the following would help managers respond to uncertainty..
Develope a program including the program description : This hands-on lab allows you to follow and experiment with the critical steps of developing a program including the program description, Analysis, Design(program design, pseudocode), Test Plan, and implementation with C code.
Find three current sales promotions : Find 3 current sales promotions, whether they be local, online, or catalog. What is the target behavior for each promotion? Then, for each sales promotion strategy, are there any other factors besides the target behavior that are important? Consider ..
Find examples of marketing strategies : Find examples of marketing strategies that are targeted at important cultural values in your society. These could be ads, but other marketing strategies (pricing promotions) could be used too.Ideally, these strategies will be for different brands in ..
Provide pseudocode of your overall design : Provide pseudocode of your overall design that fulfillsthe requirements of theproject. Provide a flowchart for your design. You can use Excel, Word, Powerpoint, Visio or any software you have available that will allow to draw shapes andconnectors.
Least cost-plan for stocking machine : A soft drink company has placed a vending machine that dispenses cans in the basement of a building. The machine holds c cans when full. The machine may be restocked at the beginning of any month at a cost of $r that covers labor and transportation. ..

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