Fundamentals of Programming Languages-II

1. Write a program in C to define a structure that holds Information of items like- Item
Number, Item Names, Item Category( Electronics, Food, Cosmetics etc), Available stock. Display the available items.

1_storeinformation

2. Write a program in C using structure for maintaining extracurricular activities of students ( roll, name, year, activity name, and prize). The prize can be either cash prize or memento but not both. Cash prize is to be recorded as integer and memento is to be recorded as character string. Use union within structure for prize. Read extracurricular activity record for n students and Display extracurricular activities.

2_extracurricularactivity

3. Write a Menu driven program in C for a cricket player’s display board. The information of the cricketer can be (not limited to) Name, Age, Country, Category ( Batsman, Bowler, Wicket keeper, All rounder), Number of ODI’s played, Number of International 20-20’s played, Average batting score, Total number of wickets taken, etc.
Perform following queries  a)Number of batsman of a particular country
b) Batsman with highest average score
c) Number of bowlers of a particular country
d) Bowler that has taken maximum no of wickets
e) Show a particular players entire “ Display board information”

3_cricketinfo

4. Diwali festival discounts are announced by a showroom. Based on the total cost of the
purchase, the following discounts are offered
Less than Rs. 1000: 5%
More than Rs1000 and upto Rs2000: 15%
Rs 2000 to Rs 5000: 20%
Above Rs 5000: 35%
Above Rs 10000: 50%
Write a program in C++ to compute and display the amount to be paid by the customer
after availing the discounts. The total cost can be taken as input.

4_diwali_discount

5. Write a C++ program to define a class to represent a Matrix. Write constructor to initialize
all matrix values to 0. Include member functions to perform the following tasks: To read the Matrix, To display the Matrix, To add two matrix, Subtract one matrix from other, Matrix Multiplication

5_matrix_manipulation