SuperTutor

(15)

$15/per page/Negotiable

About SuperTutor

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

Expertise:
Accounting,Business & Finance See all
Accounting,Business & Finance,Economics,Engineering,HR Management,Math Hide all
Teaching Since: Apr 2017
Last Sign in: 327 Weeks Ago, 5 Days Ago
Questions Answered: 12843
Tutorials Posted: 12834

Education

  • MBA, Ph.D in Management
    Harvard university
    Feb-1997 - Aug-2003

Experience

  • Professor
    Strayer University
    Jan-2007 - Present

Category > Programming Posted 06 May 2017 My Price 9.00

CMPSC 101 – LAB 14

CMPSC 101 – LAB 14
Write a program to ask the user to enter 6 numbers and store them into an integer
array. Then examine the array, if the numbers in the array are all unique, display
message “All unique!”, otherwise display the message “Not all unique!”.
Sample run 1:
enter a number:
enter a number:
enter a number:
enter a number:
enter a number:
enter a number:
All unique! 1
87
3
19
56
777 Sample run 2:
enter a
enter a
enter a
enter a
enter a
enter a
Not all number:
number:
number:
number:
number:
number:
unique! 8
9
10
8
10
788 Directions: Use the following program structure for your main.
You may create more functions if you wish, but it is not required.
int main() {
int myArray[6];
// code to fill in the array from the user
// code to determine if all of the values are unique
return 0;
}
NOTE: DO NOT USE GLOBAL VARIABLES!!!!!
A global variable is a variable that is defined outside of any function
(including main). We don't cover them in this course because they are generally
a very bad idea. So, don't do this in your projects!
ALSO: DO NOT USE ANY ASPECT OF C++ WHICH IS NOT COVERED IN THIS
COURSE. This includes libraries, etc.

Answers

(15)
Status NEW Posted 06 May 2017 03:05 AM My Price 9.00

-----------

Attachments

file 1494040679-Solutions file.docx preview (51 words )
S-----------olu-----------tio-----------ns -----------fil-----------e -----------Hel-----------lo -----------Sir-----------/Ma-----------dam----------- T-----------han-----------k y-----------ou -----------for----------- yo-----------ur -----------int-----------ere-----------st -----------and----------- bu-----------yin-----------g m-----------y p-----------ost-----------ed -----------sol-----------uti-----------on.----------- Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m o-----------nli-----------ne -----------or -----------inb-----------ox -----------me -----------a m-----------ess-----------age----------- I -----------wil-----------l b-----------e q-----------uic-----------kly----------- on-----------lin-----------e a-----------nd -----------giv-----------e y-----------ou -----------exa-----------ct -----------fil-----------e a-----------nd -----------the----------- sa-----------me -----------fil-----------e i-----------s a-----------lso----------- se-----------nt -----------to -----------you-----------r e-----------mai-----------l t-----------hat----------- is----------- re-----------gis-----------ter-----------ed -----------on-----------th-----------is -----------web-----------sit-----------e -----------Tha-----------nk -----------you----------- -----------
Not Rated(0)