Answered step by step
Verified Expert Solution
Link Copied!

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 if/else 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 br_Details[50], f_Name[50], l_Name[50],Address[50];
char bk_details[50], bk_Title[50],Author[50];
int numofcopies, contact, option,isbn,i;
do{
cout<<"---------------Welcome to Library System!-------------------"<>option;
}while();
if(option ==1)
{
cout<<"First Name: ";
cin>>f_Name;
cout<<"Last Name: ";
cin>>l_Name;
cout<<"Contact Info : ";
cin>>contact;
cout<<"Address: ";
cin>>Address;
cout<>bk_Title;
cout<<"Author: ";
cin>>Author;
cout<<"ISBN : ";
cin>>isbn;
cout<<"Number Of copies: ";
cin>>numofcopies;
cout<>f_Name;
cout<<"Last Name: ";
cin>>l_Name;
cout<<"Book Title: ";
cin>>bk_Title;
}
else if(option ==4)
{
cout<<"-----Current Book Inventory-----"<=5);
switch(option)
{
case 1: cout<<"New Borrower Detials: "<

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Describe the strengths and weaknesses of a charismatic leader.

Answered: 1 week ago