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
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. ..
|