Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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