Create a class “patient” with data members Patient_id and Oxygen_level.
Create another class “covid” with character data member “test” (this can take value either ’p’ or ‘n’). Data members of both the classes should be initialized using constructor.
Class “oxygen_supply” is inherited from both the above classes. Include member function eligibility_supply which checks whether a patient needs oxygen supply or not.
If the patient has tested to positive(‘p’) and Oxygen_level is below 90, then print “patient needs oxygen supply”.
If the patient has tested to negative(‘n’) and Oxygen_level is below 90, then print “patient needs oxygen supply”.
Create a class “patient” with data members Patient_id and Oxygen_level.
Create another class “covid” with character data member “test” (this can take value either ’p’ or ‘n’). Data members of both the classes should be initialized using constructor.
Class “oxygen_supply” is inherited from both the above classes. Include member function eligibility_supply which checks whether a patient needs oxygen supply or not.
If the patient has tested to positive(‘p’) and Oxygen_level is below 90, then print “patient needs oxygen supply”.
If the patient has tested to negative(‘n’) and Oxygen_level is below 90, then print “patient needs oxygen supply”.
Create a class “patient” with data members Patient_id and Oxygen_level.
Create another class “covid” with character data member “test” (this can take value either ’p’ or ‘n’). Data members of both the classes should be initialized using constructor.
Class “oxygen_supply” is inherited from both the above classes. Include member function eligibility_supply which checks whether a patient needs oxygen supply or not.
If the patient has tested to positive(‘p’) and Oxygen_level is below 90, then print “patient needs oxygen supply”.
If the patient has tested to negative(‘n’) and Oxygen_level is below 90, then print “patient needs oxygen supply”.
Create an object of the derived class. When you create an object of the derived class, you need to initialize data members of both the parent classes. After creating the object, check the eligibility with the function eligibility_supply. Print output with appropriate messages.
Convert the above algorithm to a Python program.
1.Start
2.Initialize Sum , Count to 1 ( Sum = 1 , Count = 1 )
3.Enter a temp
4.Add Temp to sum. ( Sum = Temp + Sum )
5.Increase Counter by 1 ( Count = Count + 1)
6.Repeat step 3 through 5 , Ten times
7.Calculat average temp in Fahrenheit (Average temp = (( sum * 9 / 5 ) + 32 ) / 10 )
8.If t Average temp is more than or equal to 97 and Average temp is less than or equal to 99 then Display “Your body temperature is normal”
9.Else Average temp is more than to 100.4 then Display “You have a fever caused by an infection or illness”
10.End.
cout<<”RAM RAM”<<”---COMPUTER”;
Correct the statement
Write c++ code that
(1) Please enter any character from the keyboard.
(2) Please let the computer output two lines: the first line is in the form of characters, 3 characters are output, the 3 characters are separated by commas, and the second line is the ASCII code corresponding to the output characters.
(3)run test the code in main
Write a program to print T in all scales viz Celsius, Fahrenheit, and Kelvin.
Formula to convert from Fahrenheit F to Celsius C is C = (F - 32) * 5 / 9.
Formula to convert from Kelvin K to Celsius C is C = K - 273.
Here "C", "F", "K" represent that the temperature scale is in Celsius, Fahrenheit and Kelvin scales respectively.
The input contains the temperature (a number) and the unit of the temperature scale (C, F, K) without any space.
The output contains temperature in Celsius, Fahrenheit and Kelvin scales in each line in the format similar to input and the value of the temperature is rounded to 2 decimal places.Input
Given an array array[], its starting position l and its ending position r. Sort the array using Bucket Sort algorithm.
Input: N = 10
array[] = {10 9 7 8 6 2 4 3 5 1}
Output: 1 2 3 4 5 6 7 8 9 10
write a c++ program using nested loop that computes the average grade for multiple students each student has the same number of exam grade. prompt the user for the number of exam. when you finish the user prompt to see if there are morre students to process
Write a program (source code) for Fault tree analysis of all circumstances.