c-visual-studios-programming-assignment-help-
c-visual-studios-programming-assignment-help-
Functions
Create a program that:
- Displays a menu of functions that the user is able to pick from. If information is returned from a function, then that information should be displayed outside of the function. Any information passed as an argument should be obtained outside of the function.
- void hello()
- Will simply display the text “Hello, world!â€
- void printBetween(int a, int b)
- Will print all numbers between a and b, including a and b, counting up
- E.G. a = 3, b = 6, ouput = “3 4 5 6†(or can use newlines)
- Will print all numbers between a and b, including a and b, counting up
- bool isPrime(int n)
- Returns true to indicate n is prime, or false to indicate it’s not
- A number n is prime if it is not divisible by any of the numbers x in the range 1 < x < n
- Returns true to indicate n is prime, or false to indicate it’s not
- int leastCommonDenominator(int a, int b)
- Returns the smallest number that is divisible by both a and b
- Which means (answer % a) and (answer % b) are both 0
- The least common factor of 3 and 4 is 12
- Returns the smallest number that is divisible by both a and b
- void squaredOpposite(double &n)
- Sets the contents of the argument to be the squared value of n, with the opposite sign compared to n
- E.G. input of 3 would result in output of -9
- n is being passed as a reference variable, meaning changes made to it in the function will be reflected in the argument that was passed into the function call
- Sets the contents of the argument to be the squared value of n, with the opposite sign compared to n
- void hello()
- Asks the user if they would like to return to the menu
Points:
1 – Documentation, readability, format
3.5 – Proper use of functions
2.5 – Proper program flow (conditionals, loops, etc)
2 – Filename and Header
1 – Output testing
Header
//Author: (your name)
//CPSC 120 Lab 5
//<MM/DD/YY> (Current Date)
Filename
<Last Name><First Initial>lab5.cpp, e.x. my assignment would be named MayElab5.cpp
#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper
#Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational
