ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 2 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 29 Apr 2017 My Price 9.00

SDEV 140 / Introduction to Software Development

Need help in Flowgorithm..  Please view attachment for instructions.

 

 

IVY TECH COMMUNITY COLLEGE
SDEV 140 / Introduction to Software Development
S06 Flowgorithm Assignment / Chapter 6: Functions (15 points)
(From Programming Exercise 4, page 265)
Student’s name ______________________ Section _______ Instructor’s name _________________
INTRODUCTION: Download this document (S06 Flowgorithm Assignment.docx) from Blackboard, save it on your
computer (in a folder that you can easily locate), and then open it in Word.
PREREQUISITE: You need to have the Flowgorithm program installed. Refer to S02 Flowgorithm Assignment if you
have not done this already.
TASKS: This assignment is taken from Programming Exercise 4 on page 265 in Chapter 6 of the textbook. In this
program, you will: Create a Flowgorithm program from a problem description Ask the user for two numbers Pass the two numbers as arguments to a function The function takes the arguments, determines the maximum value, and returns the result The main module displays the maximum value in a sentance
ASSIGNMENT: Start Flowgorithm, and then do the assignment outlined in step 1. Save the Flowgorithm file on your
flash drive or PC as S06.fprg. Submit the Flowgorithm file in Blackboard.
1) Create a Flowgorithm program as follows:
a. Insert a Comment box, and type comment lines for the Author, Date, and Description.
b. In the Main function, declare two Integer variables (such as firstNum and secondNum), and prompt the
user to enter values for them. These will be used as arguments to a function that determines the maximum
value of the two.
c. Add a function (under Programs) named max. Add two Integer parameters to the function (such as n1
and n2). There should also be an Integer return variable (suggestion: name it larger).
d. Inside the function, declare the variable larger, use an If statement to compare the two parameter values,
and assign the greater value to larger.
e. Back in the Main module, use an Output statement to call the function (with the two arguments
firstNum and secondNum) and display the output in a sentence, for example:
“The greater value is: “ & max(firstNum, secondNum)
f. Save your file as S06.fprg. g. Run the program. The program should ask you to enter two numbers. It calls the max function, then
displays a sentence telling you which is the greater value. If there are any errors, recheck the instructions
and correct them, then resave the file. A sample screen shot of the max function is shown below.
2) Submit the Flowgorithm file S06.fprg by clicking on the View/Complete Assignment link in Blackboard, and
attaching the file.
DEBUGGING THE PROGRAM: One of the greatest skills a programmer can develop is debugging, which means
locating and fixing errors in a program. Email your instructor and ASK QUESTIONS if you are having trouble. Please
attach your Flowgorithm file (S06.fprg) to your email. CHECKLIST FOR SUBMITTING THE ASSIGNMENT: You have tested the Flowgorithm program (S06.fprg) and it works correctly Then, Attach the Flowgorithm file (S06.fprg) and Submit it through Blackboard
SAMPLE SCREEN SHOT:

Attachments:

Answers

(11)
Status NEW Posted 29 Apr 2017 08:04 AM My Price 9.00

-----------

Not Rated(0)