From 7a73162607544204032aa66cce755daf21edebda Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 24 May 2022 11:18:46 -0500 Subject: Graduate Signed-off-by: Matt Strapp --- OLD/ee1301/wk5/lab4/partner3.cpp | 63 ---------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 OLD/ee1301/wk5/lab4/partner3.cpp (limited to 'OLD/ee1301/wk5/lab4/partner3.cpp') diff --git a/OLD/ee1301/wk5/lab4/partner3.cpp b/OLD/ee1301/wk5/lab4/partner3.cpp deleted file mode 100644 index 75d6d7b..0000000 --- a/OLD/ee1301/wk5/lab4/partner3.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include - -using namespace std; - -string requestName(); -double requestHeight(string fullName); -int requestNumberOfPartners(); -void NotinMain(string array1[], double array2[], int numberOfPartners); - -int main() -{ - int numberOfPartners = requestNumberOfPartners(); - string fullName[100]; //fullName1, fullName2; - double height[100]; //height1, height2; - - // fullName[0] = requestName(); - // height[0] = requestHeight(fullName[0]); - for (int i=0; i> height; - cin.ignore(2, '\n'); // gets rid of \n in the buffer - - return height; -} - -int requestNumberOfPartners() -{ - int numberOfPartners; - cout << "How many partners are there? "; - cin >> numberOfPartners; - cin.ignore(2, '\n'); - - return numberOfPartners; -} - -void NotinMain(string array1[100], double array2[100], int numberOfPartners) { - double heightTotal=0; - cout << "If " << array1[0]; - for (int i=1; i