The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I need help fast. This is due within the next two hours. I have attached what i have thus far. Could you email this to me please.
Much appreciated. (..n@yahoo.com). Thanks in advance.
Â
//*********************************************************************************// Course:CS1336.501// Date:4/20/2016// Assignment:Homework 9 Program 1// Compiler:Eclipse//*********************************************************************************// This program performs a linear algorithm search#include<iostream>#include<fstream>#include<string>#include<array>#include<algorithm>using namespace std;int main(){ifstream LSS("LSStandard.txt");ifstream LST("LSTest.txt");intLSArray[50];int LSTArray[22];int input;int result;// int maximum;int flag;int pos;int key;int count2;cout << endl;if (!LSS.fail()){cout << "'LSStandard.txt' file opened successfully." << endl;cout << "Attempting to open 'LSTest.txt'" << endl << endl;int a = 0;int b = 0;int j = 0;while (a < 22){LST >> LSArray[a];a++;}while (b < 50){LSS >> LSArray[b];b++;}while (j <22){cout << LSArray[j] << endl;
Â
-----------