Write a C++ program that read student’s subject marks from file named (std_makrs.txt) which contains the marks of 5 students. Each row of the file represents the subject marks of a student. Total subject registered for each student is saved into file named (std_subject.txt)
b)Classify following example Fast yes or no using baysean classification algorithm Engine = Small , SC/Turbo= Yes , Weight=Light , Fuel Eco= Good
If there is a group of x people in a room, what is the probability that two or more of them have the same birthday? It is possible to determine the answer to this question by simulation.
a) Make a getRandom function , then edit as follows to: Take as input n, which is the maximum random number that may be generated Return (output) a number in the range 1 to n Tip: Still use the round(rand()) construct, but this time, you are multiplying by n and adding 1. (note that you are NOT using the randi built-in function here!)
2 b) Write a new getRandomArray function : Take as input the number of people in a room (x) and the maximum number that can be used (n) Return an array of b numbers (i.e. the birthdays) Use the getRandom function to generate a random birthday for each person, from 1 to n Tip: initialise x and use a loop to generate the required number of elements and build the array.
consider the following quadratic equation: 2x^2-40x+150=0. a trusted mathematician tells us that the roots for this equation are 15 and 75. however, when you try to solve it, the roots turns out to be 15 and 5. explain why 75 could be a solution while 5 is not
int main()
{
double disc;
double item1 = 201.99;
double item2 = 20.56;
string message;
disc = calcDisc(item1, item2);
message = calcDisc();
return 0;
}
The two function calls will ... ?
Write a python program to check if a given 3-digit number
X is an Armstrong number or not. Note: A number is an Armstrong number if the number is equal to the sum of the Nth power of its digits.