Highest and Lowest Number Determiner 3.0 Using Two Dimensional Array
Submitted by jakerpomperada on Sunday, November 29, 2009 - 15:33.
Language
Hi there thanks for visiting the site. About this code I called it
Highest and Lowest Number Determiner 3.0
Using Two Dimensional Array updated my code from using one dimesional array to two dimensional array in C++. I find some difficulty at start try to understand the underlying code using two dimensional array finally I got the right code. I intended my work for those who are new in C++ prorgramming. If you like my work send me an email at [email protected] . I am also accepting programming jobs like programming assignments, projects and thesis in a very reasonable price. People here in the Philippines can contact me through my mobile phonenumber at 09296768375 and my telephone number at home +63 (034) 4335081 . Thank you very much and Happy Programming. Regards,Mr. Jake Rodriguez Pomperada, MAED-Instructional Technology Programmer, Teacher and Computer Techncian
Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Comments
Highest and lowest number in an array
#include
#include
void input(int values[2][5], int high, int low);
void repeat(char& reply);
int main()
{
char reply;
int values[5][2], high, low;
clrscr();
cout "\n\n";
cout " Determining the highest and lowest number\n";
cout " Created By: Mr. Mohammad Naif H.Z. Abdulazis\n";
cout " CSc101 Section QqRr\n";
cout endl;
input(values[2][5],high,low);
repeat(reply);
cout "Enter a value.\n";
for(int i=0; i5; i++)
for(int n=0; n2; n++)
cout values[i][n] " " endl;
cout "\n The highest number is = " high;
cout "\n";
cout "The lowest number is = " low;
cout "\n\n";
cin.get();
cin.get();
return 0;
}
void input(int values[2][5], int high, int low)
{
high=values[0][0];
for(int i=0; i5; i++)
for(int n=0; n2; n++)
if (highvalues[i][n])
low=values[i][n];
}
void repeat(char& reply)
{
do
{
cout "Do you want to continue? \n";
cout "Press Y for Yes and N for No. \n";
cin >> reply;
}while ((reply=='Y')||(reply=='y'));
return 0;
}
//here's my code for an array using a function, but it wont run..
kuya can you help me to program this?
Add new comment
- Add new comment
- 227 views