Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Page 1 > of O ZODM + CISP 400 Object Oriented Programming C++ 00_ Orientation Assignment This assignment is meant as an exercise to review

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
Page 1 > of O ZODM + CISP 400 Object Oriented Programming C++ 00_ Orientation Assignment This assignment is meant as an exercise to review basic concepts from CISP360 and go through the program development cycle. The software engineering overview document that is assigned to you on Canvas will walk you through the steps that are necessary for you to work on your assignments. The purpose ofthis lab is to take a simple structured programming problem and solve it using the top clown methodology and so'ware engineering tools that are given in the document. Please make sure that you practice staying with this methodology and submit your work exactly as specied in the assignment instructions. Requirements: Make sure you read the "Software Engineering Review\" document before attempting this tab. Ptease also review structured programming concepts from the required reading and resources Specications: Problem: \\Vrite a C++ program that determines if an integer is a multiple of 7'. The program should prompt the user to enter and integer. determine if it is a multiple of 7 by using a given formula and output the result. This is not meant to be a menu driven program so one run of the program \"all only offer one input and one output. Formula: Given integer n, ifnD a? = 0. then n is a multiple of 7 Solution: The program should be designed using top doom structured methodology and your solution document should be based on the procedures given in the software engineering overview document. Your submission needs to contain the following: Page 1 of 3 ZOOM + document. Your submission needs to contain the following: Documented Code Screenshots of tests passed on the college server Function decomposition: Your program structure needs to have a main function called runNumberCheck. This function calls a) function inputNumber input parameters: none return value: integer logic: display prompt " Please enter an integer" input integer number from console return the numberPage 2 of 3 ZOOM + return value: integer logic: display prompt " Please enter an integer" input integer number from console return the number b) function checkMultiple7 input parameters: integer return value: Boolean logic: use the formula given to determine inf the number is c) function displayResults input parameters: integer, string return value: none logic: output to the console the input message. If the number passes the multiple check, then the input message will be number "is a multiple of 7". Otherwise the message will be number " is not a multiple of 7" Code decomposition: For now, place the entire program in a single file called checkMultiple7Main.cpp. Use function prototypes to declare the functions at the beginning of the file. Place the function definitions at the bottom of the file. You will separate the code in the next module. Compiling and Running : Use any IDE like VisualStudio or Replit to compile and run your program Testing and VerificationPage of Testing and Verication Tests: Take a scveen shot of your program passing the following tests: Output 0 is a multi 1e of? l 1 is not a multiple of 7 7 7 is a multiple of 7' -7' -7 is a multiple of? 8 8 is not a multiple of 7 35 35 is a multiple of? A sample screen shot showing the progam execution on the timer: ZODM + Page 3 of 3 ZOOM + A sample screen shot showing the program execution on the server: mukarramas ama$ 9++ - 7Main . Cpp -o checkMultiple7 Main . o mukarramaescc-bdiv-cis:~/Programs$ chmod 777 checkMultiple7Main.o mukarrama@scc-bdiv-cis: ~/Programs$ . /checkMultiple7Main.o Please enter an integer 0 0 is a multiple of 7 mukarramascc-bdiv-cis: ~/Programs$ . /checkMultiple7Main.o Please enter an integer 1 1 is not a multiple of mukarramascc-bdiv-cis:~/Programs$ . /checkMultiple7Main.o Please enter an integer 7 7 is a multiple of 7 mukarrama@scc-bdiv-cis: ~/Programs$ . /checkMultiple7Main.o Please enter an integer -7 -7 is a multiple of 7 mukarramalacc-bdiv-cis:~/Programs$ . /checkMultiple7Main.o Please enter an integer 8 8 is not a multiple of 7 mukarramaescc-bdiv-cis:~/Programs$ . /checkMultiple7Main.o Please enter an integer 35 35 is a multiple of 7 Submission Guidelines You will submit two files: 1. Word doc containing the testing evidence. Call this file checkMultiple7Doc.docx 2. Text file containing the code. This file is to be named checkMultiple7Main.cppPage 3 of 3 ZOOM + Submission Guidelines You will submit two files: 1. Word doc containing the testing evidence. Call this file checkMultiple7Doc.docx 2. Text file containing the code. This file is to be named checkMultiple7Main.cpp Grading Rubric: Please access the rubric from within the assignment on Canvas for details. Here is a brief breakdown: 4 pts -Working Code that meets the specification 3 pts - Good documentation and style 3 pts - Testing and validation evidence in the documentation file

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

4. What is Walras Law? What is its significance?

Answered: 1 week ago

Question

What are the factors that influence make or buy decisions ?

Answered: 1 week ago

Question

Define plant location.

Answered: 1 week ago