Practical Slip 4 - 2019 Pattern

  C++:


B) Write a C++ program to create a base class Employee (Emp-code, name, salary). Derive two classes as

Fulltime (daily_wages, number_of_days) and Parttime (number_of_workinghours, hourly_wages).

Write a menu driven program to perform following functions:

1. Accept the details of ‘n’? employees and calculate the salary.

2. Display the details of ‘n’ employees.

3. Display the details of employee having maximum salary for both types of employees. [25 M]


PHP:


B) Create an xml file which should comprise the following:

<cricket>

<player>Sachin Tendulkar</player>

<runs>2000</runs>

<wickets> 100</wickets>

<noofnotout>20</noofnotout>

</cricket>

Forat least 5 players.

Write a PHPscript to display the details of players who have scored more than 1200 runs and atleast

50 wickets. [25 M]


Post a Comment

0 Comments