Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the code from my orientation assignment #include #include #include using namespace std; int inputNumber(); bool checkMultiple7(int x); void displayResults(int num,string msg); int inputNumber()

image text in transcribed

This is the code from my orientation assignment

#include #include #include using namespace std;

int inputNumber(); bool checkMultiple7(int x); void displayResults(int num,string msg);

int inputNumber() { int num; cout>num; return num; } bool checkMultiple7(int x) { if(x%7==0) { return true; //Returning true if number is multiple of 7 } else { return false; } } void displayResults(int num,string msg) { cout

void runNumberCheck() { int num=inputNumber(); string message; if(checkMultiple7(num)) { message="is a Multiple of"; displayResults(num,message); } else { message="is not a Multiple of"; displayResults(num,message); } }

int main() { runNumberCheck(); }

The code that you are going to develop for this assignment is the first step in the software development process for this course. It is very essential that you pay attention to correct code development in this assignment to prevent core design errors from cascading into future assignments. Please make sure that you use standard and recommended practices that you learnt in P301 - this includes top down design methodology, execution charts, good documentation and programming style and separation of code files. For now, we will stay with three files, but later if necessary, we may add an additional files. Make sure to follow good documentation and programming style. Specifications and Submission Guidelines: This assignment is an extension of the orientation assignment. You will need to have working version of the program that you have created. 1. Read the Software Engineering Document sections "Source Code Development" and "Compilation Using Makefiles" for guidance 2. Separate the C++ program checkMultiple7Main.cpp into the following suite of 3 files, paying attention to #include directives required as given in the "Source Code Development" section: 3. checkMultipleMain.cpp 4. checkMultiple Header.h 5. checkMultipleFunctions.cpp 6. If using the college server, create a makefile to compile this suite using guidelines in the section "Compilation Using Makefiles" 7. Transfer this suite and makefile to a directory called Module 1. Compile and run the program. The output and tests should be exactly the same as the Orientation lab assignment. 8. Refer to the assignment rubric for the grading scheme 9. Zip the three files in the program suite along with the makefile into a file called WXXxxxxLabo.zip where WXXXXXX is your student id 7.Create a file called wxxxxxxxSDO.docx. Write the execution chart of your driver program in this file. Recall that the execution chart is the sequence of method calls of the program (Look at the Software Engineering Review Document in the resource section) to review this software tool. Please include single line comments in this file for a brief description of the method calls. As you know, variable declarations are not part of the execution chart and they are not to be included. 8. Insert screenshots of the results of make command and the output testing in the file wxxxxxxxLabo.docx

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions