How to do this structures, any Idea?
Given a program segment as follows:
#include <stdio.h>
struct book {
char title[80];
int bar_code;
float price;
} ;
struct book BOOK;
void INPUT (struct book *B);
float DISCOUNT (struct book *B);
You are required to write a complete program that includes the following functions:
i. INPUT() function to read the book information.
ii. DISCOUNT() function to calculate discount price for a book. If the price is more than RM100, 10% discount will be given.
iii. main() function to call INPUT and DISCOUNT function. Then, display all information stored in the BOOK structure and the discount price.