#include using namespace std; int { main()//declare arrays char types[5] = {\'A\
ID: 3659099 • Letter: #
Question
#include using namespace std; int { main()//declare arrays char types[5] = {'A', 'B', 'C', 'D', 'E'}; int fees[5] = {100, 110, 125, 150, 200};//declare variables char memberType = ' '; int sub = 0;//get type to search for cout << cin >> memberType; memberType = toupper(memberType); " Please input the Membership type (A, B, C, D, or E): ";// write the while loop to locate the position of the membership //end while // if the membership type was located in the types array, display the membership type and the corresponding fee else display an error cout << "Invalid membership type" << endl;//end if system( } "pause");return 0;//end of main functionExplanation / Answer
//Club Membership.cpp - displays the annual //membership fee #include using namespace std; int main(){ //declare arrays char types[5] = {'A', 'B', 'C', 'D', 'E'}; int fees[5] = {100, 110, 125, 150, 200}; //declare variables char memberType = ' '; int sub = 0; int idx=-1; //get type to search for cout memberType; coutmemberType; memberType = toupper(memberType); // write the while loop to locate the position of the membership while(subRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.