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

  Write a c program that solve specific problem in their field

The second option is for the students to write a "C" program that solve a specific problem in their field. The students must get the approval from the instructor before they can start writing codes to solve the problem.

  Program containing a function that outputs the elements

Write a program containing a function that outputs the elements stored in the tree (integers) to the screen. The integers have to be output level by level in the order they appear in the tree.

  Program to next the loops in either direction

You can write your program to next the loops in either direction, that is, process row-by-row or column-by-column. Explain which way you would choose to process the data.

  Write a function that returns a pointer to an array

Write and show a function that takes an integer n and returns a pointer to an array of the first n cubes (0, 1, 8, 27, and so on).

  Program that calculates and prints average of several grades

Write a C program that calculates and prints the average of several grades entered by the user. The program should first prompt the user to enter the number of grades to process (at least 2 grades must be entered by user!)

  Create a program that outputs the result of the formula

Create a program that uses the same formula above to output the result; this time, however, prompt the user for the values a, b, x, and y. Use appropriate variable names and naming conventions.

  Sequence of instructions that transfers data from memory

Write a sequence of instructions that transfers data from memory to an external I/O device by using channel 3 of the 8237 DMA controller. Transfer from 20000H-20FFFH.

  Write a program to display the given pattern on the screen

Write a program to accept number of lines (n) from the user and display the given pattern on the screen. 1 232 34543 4567654 567898765

  Show the contents of the id array

Show the contents of the id array after each union operation when you use the quick find algorithm (Program below) to solve the connectivity problem for the sequence 0-2, 1-4, 2-5, 3-6, 0-4, 6-0, and 1-3.

  Winning number combinations from the missouri lottery

The file input.txt contains all of the winning number combinations from the Missouri Lottery since it took its current form on January 3, 1998.  The data is in a file called "input.txt"  All of the data in the file is integer.

  Write your own version of wc

Write your own version of wc. Your program is to receive a text file as a command line argument and then count and display the number of lines and characters in that text file.

  Write a c function called resistance which reads adc channel

Write a C function called sensor to read the status of all sensors and return a single byte (short int) whose value is 0 if no sensor is active, 1 if the ‘core placed' sensor is active, 2 if the ‘winder' sensor is active, or 3 if the ‘test point' ..

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