Questions: 11 448

Answers by our Experts: 10 707

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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]



Define two classes Fahrenheit and celsius to represent temperature in Fahrenheit and celsius respectively.Use conversion function to convert from one system to the other


imagine a publishing company that markets both book and audiocassette versions of its works. create a publication that stores title (a string) and price (type int) of a publication. From this class derive two classes book which adds page count (type int) and author (a string) and tape which adds a playing time in minutes (type float) each of these three class should have getdata function to get its data from user at keyboard and putdata function to display its data . write a main() program to test the book and tape classes by creating instances of them asking user to fill in data with getdata and then displaying the data with putdata function. you have to get data of two different book and tape and write a completedata() where have to show the costly book and lengthy tape


Create a program that will overload a function four (4) times. The function takes a single parameter but each parameter is different in each function.


A mathematics question paper has certain number of question and each question is assigned some random maximum mark. Mr. Myers want to edit the marks assigned to the question such that 1. all quest in the paper should have distinct maximum marks. 2. the total marks of all the question should be as low as possible. Mr. Myer wants to achieve this by making minimal changes in the original format, assigning the question at least as much marks as it originally had. Find the minimum total marks that he can set the paper for. 


write a program that prompts the user to enter the age of a customer.if the age is younger than 15 then ask the user to enter the name of the customer and notify them by name that they qualify a free toy


monica has cooked n dishes and collected the data on the level of satisfaction for all the dishes from a guest. the guest returns an array, where the ith element of the array is the liking level of the ith dish. also, the time taken to cook the ith dish is i. like-to-time coefficient of a dish is calculated by multiplying the time taken to cook food with its liking level, i.e., input 2[i]. totally like-to-time coefficient is calculated by summing up all individual coefficients of dishes. you want the total like-to-time coefficient to be maximum. you can also remove some dishes, in which case, a new coefficient is calculated using the left dishes. find the maximum sum of all possible like-to-time coefficients.​program done by using functions.


Create a program that will overload a function four (4) times. The function takes a single parameter but each parameter is different in each function.


Create a program that asks the user to enter the names of their last three employers. Output the names entered to confirm. Ask the user if the confirmation output is correct. If Yes, end the program. If No, then ask for the three names again.

 

Output:

This program will ask you to enter the company name of your last three employers.

Enter the company name:   [user types: 123 Corp]

Enter the company name:   [user types: 789 Corp]

Enter the company name:   [user types: Kendall Corp]

These are the company names you entered:

123 Corp

789 Corp

Kendall Corp

Are these three names correct (Y or N)?  [user types: n]

Enter the company name:   [user types: ABC Corp]

Enter the company name:   [user types: XYZ Corp]

Enter the company name:   [user types: Miami Corp]

These are the company names you entered:

ABC Corp

XYZ Corp

Miami Corp

Are these three names correct (Y or N)?  [user types: y]



This is similar to the exercise we did in class but with two changes: (1) Use doubles instead of ints; (2) The user will be providing the numbers. Just like the class exercise, output the sum, average, highest, and lowest of the user's numbers. 

 

Output:

This program will ask you to enter 5 numbers with decimal places.

It will then show you the total, average, largest number, and smallest number.

Enter a number:   [user types: 5.2]


Enter a number:   [user types: 9.8]


Enter a number:   [user types: 2.5]


Enter a number:   [user types: 17.5]


Enter a number:   [user types: 7.5]


Total: 42.5

Average: 8.5

Lowest: 2.5

Highest: 17.5


LATEST TUTORIALS
APPROVED BY CLIENTS