Question: Using the code i have attached below please assit fix the errors and help to complete followignt he guides and requrements: . Create a C
Using the code i have attached below please assit fix the errors and help to complete followignt he guides and requrements:
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
Implement ifelse statements to create a simple menu system.
Use a switch statement to handle menu choices.
Implement loops for while for repetitive tasks.
Add functionality to the calculator to handle multiple operations until the user decides to exit.
Refactor the operations into separate functions.
Implement an array of structures to store the series of values.
Implement functions to perform operations on the array.
Modify the menu to include options for these new operations.. Call these functions from the menu system.
#include
using namespace std;
main
char brDetails fName lNameAddress;
char bkdetails bkTitleAuthor;
int numofcopies, contact, option,isbn,i;
do
coutWelcome to Library System!option;
while;
ifoption
cout"First Name: ;
cinfName;
cout"Last Name: ;
cinlName;
cout"Contact Info : ;
cincontact;
cout"Address: ;
cinAddress;
coutbkTitle;
cout"Author: ;
cinAuthor;
cout"ISBN : ;
cinisbn;
cout"Number Of copies: ;
cinnumofcopies;
coutfName;
cout"Last Name: ;
cinlName;
cout"Book Title: ;
cinbkTitle;
else ifoption
coutCurrent Book Inventory;
switchoption
case : cout"New Borrower Detials:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
