: 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]
[int(input()) for _ in range(n)]
in this line how we are using for loop aside of input() function can you explain
in this answer why we are using "_" operator and what is the use with it
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 an ideal constant volume cycle, the pressure and temperature at the beginning of Compressions are 97 kN/m2 and 40°C, respectively. The compression ratio is 7: 1. The heat supplied during the cycle is 1200 kJ/kg of working fluid. Determine (a) the maximum temperature attained in the cycle, (b) the thermal efficiency of the cycle, and (c) the work done during the cycle/kg of working fluid. Assume ɤ = 1.4 and Cv, = 0.718 kJ/kg K
Write a python program to count number of each characters in a string
For example python
P=1,y=1,t=1,h=1,o=1,n=1
Write a program to overload operators in the same program by writing suitable operator member functions for following expression:
07= ((01 % 02)>(03 || 04) - (05>06)) [Here 01,02,03,04,05,06 and 07 are objects of a class "overloading", and this class is having one integer data member]
A principle section of calcite crystal cut always in parallelograms with angles ______.
Write a program to overload operators in the same program by writing suitable operator member functions for following expression:
O7= ((O1 % O2)>(O3 || O4) - (O5>O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class “overloading”, and this class is having one integer data member]
Write a program to overload operators in the same program by writing suitable operator member functions for following expression:
O7= ((O1 % O2)>(O3 || O4) - (O5>O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class “overloading”, and this class is having one integer data member]