Q4: Suppose, the same function is defined in both the derived class and the based class. Now if we call this function using the object of the derived class. Compiler will call which
function and elaborate the same used by the compiler.
Q4: Suppose, the same function is defined in both the derived class and the based class. Now if we call this function using the object of the derived class. Compiler will call which
function and elaborate the same used by the compiler.
Q3: Write a program to perform basic to class conversion [Class name: “conversion” with data members: feet and inches (both int)] Convert basic type(int) height in terms of total number of inches into equivalent feet and inches (class type) and display output on screen.
John's commute from home to work is normally distributed with mean 45 minutes, deviation
standard 3 minutes.
a) What is the probability that John travels from home to work in 30 to 40 minutes?
b) If the starting time at the company is 9:00 am, what time should John start going from home?
so that the probability of getting to work on time is 95%?
Q3: Write a program to perform basic to class conversion [Class name: “conversion” with data members: feet and inches (both int)] Convert basic type(int) height in terms of total number of inches into equivalent feet and inches (class type) and display output on screen.
Q1: Write a program to take input for n number of doctor records and write records of all cardiologists in a file named: “record1”. Also write records of all those doctors in another file named: “record2” who are taking salary more than INR 80,000. After writing records in both files, merge their contents in another file: “finalrecord” and read all records of “finalrecord” file and display on screen. [Attributes of doctor: doc_id, doc_name, doc_specialization, doc_salary]
A human being can be electrocuted if a current as small as 50mA passes near the heart. An electrician with sweaty hands makes good contact with two conductors he is holding, one in each hand. If his resistance is 2kΩ, what is the fatal voltage?
Write a program to overload binary + operator using friend function to add values entered in kilo meters and meters and to overload binary – operator using member function to subtract values entered in kilograms and grams
In a group of 35 ex-athletes, 17 play golf, 20 go cycling, and 12 do yoga. Exactly 8
play golf and go cycling, 8 play golf and do yoga, 7 go cycling and do yoga, and 4 do
all three activities. How many of the ex-athletes do none of these activities?