C++ for Engineers and Scientists
C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
expand_more
expand_more
format_list_bulleted
Bartleby Related Questions Icon
Related questions
Question
This is for my Computer Organization & Assembly Language Class
Transcribed Image Text:Objectives
Students will demonstrate how to create
• Flow Charts
•
Hierarchy Charts
• Write technical documentation to accompany programs
Directions
Create a Flow Chart, Hierarchy Chart and Header block documentation for the following program.
The program is a simple database program
with the following functions, in pseudo code
mainFunction()
prompt user for username, using the prompt () function
prompt user for password, using the prompt() function
Login with username/password from above, using the login() function
if the login fails try again up to 3 times, exit on the 3rd fail with 'Error Logging In' and return 1
if the login succeeds load the users data based on their username using function getData()
Display the data: First Name, Last Name, Age, Number of units taken and major
Then wait for data using the prompt() function
if the user types q then exit the application and return 0
if the user types add x then add the number of units and update using the putUnits() function
if the user types anything else wait for data using the prompt() function
The function declaration look like this in c like pseudo code :
int mainFunction();
string prompt(string prompt);
boolean login(string username, string password);
dataClass getData(string username);
boolean putUnits(int units, string username);
You will turn in:
1. Flow Chart depicting the flow of execution of the program
2. Hierarchy chart depicting the interaction between functions
3. For each function create a header in the format:
// functionName
//
// Description:
// Parameters:
// Preconditions:
// Postconditions:
// Return value:
//
The charts may be images of hand drawn charts, and can have eraser marks, but must be legible in the final
image sent for grading.
What to submit:
Submit to the canvas system by the deadline screenshots, documents or images of hand drawn work as listed
in the directions.
Expert Solution
Check MarkThis question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
bartleby
Step by stepSolved in 2 steps
Knowledge Booster
Background pattern image
Recommended textbooks for you
- Text book imageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrText book imageProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageText book imageNew Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage Learning
- Text book imageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTText book imageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningText book imageSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning