a c++ program that reads 5 scores and how much each scores differ from the the highest score
Write a program to perform the following statement obj2=obj1+x (int type) and obj2=x+obj1 using operator member function and friend function.
Write a program to subtract two time objects and stored the result in 3rd object using operator member function and friend function
Write a program to add two distance objects and stored the result in first object using Operator member function and friend function
Write a program to add two distance object using operator member function.
Write a program to subtract two time object using operator member function.
Write a program to multiply two complex number and stored in third one by the concept of operator overloading using member function.
Write a program called National_lottery. it should use rand function to produce 6 random numbers to 0 & 49, number must not repeat. use an appropriate pointer to print address of numbers in memory and its must be in hexadecimal. use derefencing operator to point in address. use function sort with begin() & end() function to organise values in ascending order, use a for statement to intialise numbers into arrays. Search any 2 array element that give sum of >=80 when added together, if numbers >=80 are more than one set, consider the biggest set chosen for draw. if the value of sum of the two are >=80, print "You W" & if they are < 80, print "You L". Amount won by custom made function amountDeterminat of type & double argument in prototype. argument will be winning number received from sum of 2 numbers. amountDeterminant must use switch conditions. if winning numbers is (80-83 won amount 1700000, 84-86 R2500000, 87-98 R16000000). add this #include<vector>.