Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE ASSIT ME BY MAKING THE CODE BELOW FULLY FUNCTIONAL BY USING BASIC C + + STRUCTURE AND ARRAY WHICH DES NOT USE THE USE
PLEASE ASSIT ME BY MAKING THE CODE BELOW FULLY FUNCTIONAL BY USING BASIC C STRUCTURE AND ARRAY WHICH DES NOT USE THE USE OF INT & OR THE OTHER HARDER FUNCTIONS AND STRUCTURE BUT RATHER MAKE IT AS SIMPLIFIED AS POSISBLE making sure to meet guidelines Create a C program.
Declare and initialize variables of different data types int float, char, string
Implement a basic structure of the program.
Implement basic input and output and output formatting.
Submit source code to CANVAS.#include
#include
using namespace std;
struct Borrower
char brdetails;
char fname;
char lname;
string address;
int contact;
;
struct Book
char bkdetails;
char bktitle;
char Author;
int numofcopies;
int ISBN;
;
void addNewBorrowerBorrower borrowers;
void addNewBookBook books;
void viewBookInventoryBook books;
void searchBookBook Books;
void DisplayAllBorrowersBorrower borrowers;
void borrowBookBook books Borrower borrowers;
void addNewBorrowerBorrower borrowers
int i;
cout"First Name: ;
cinborrowersifname;
cout"Last Name: ;
cinborrowersilname;
cout"Contact Info: ;
cinborrowersicontact;
cout"Address: ;
cin.ignore;
cinborrowersiaddress;
borrowers;
void addNewBookBook books
int i;
cout"Book Title: ;
cinbooksibktitle;
cout"Author: ;
cinbooksiAuthor;
cout"ISBN: ;
cinbooksiISBN;
cout"Number Of Copies:";
cinbooksinumofcopies;
cin.ignore;
books;
void viewBookInventoryBook books
int i numBooks;
coutsearchISBN;
for i ; ioption;
switchoption
case : addNewBorrowerborrowers; break;
case : addNewBookbooks; break;
case : viewBookInventorybooks; break;
case : borrowBookbooksborrowers; break;
case : DisplayAllBorrowersborrowersbooks; break;
case : searchBookbooks; break;
default:
cout"Invalid Opton! Please Try Again"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started