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

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.


use appropriate pointer operator to print the addresses of the numbers in memory, the memory address must be expressed in hexadecimal
After the addresses of the numbers ,use the deferencing operator to point to values contained within addresses. Use the function sort with begin() and end() function to organize the values in ascending order.After establishment the order of values ,assign values into an array called winning-numbers. You can use the statement or the initializer list to initialize
The amounts won must be determined by custom made function called amountDeterminant of type double and receives a double argument in prototype, the argument will be the winning number received from the sum of two (2)
Amount Determination must use switch conditions and operate as follows :
If the winning number is ,
1. Between 80 and 83 , the won amount is R1700000-00
2. Between 84 and 86, the won amount is R2 50000-00
3. Between 87 and 98, the won amount is R16000000-00

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>.


Create a class called bMoney. It should store money amounts as long doubles. Use the
function mstold() to convert a money string entered as input into a long double, and
the function ldtoms() to convert the long double to a money string for display. (See
Exercises 6 and 10.) You can call the input and output member functions getmoney()
and putmoney(). Write another member function that adds two bMoney amounts; you can
call it madd(). Adding bMoney objects is easy: Just add the long double member data
amounts in two bMoney objects. Write a main() program that repeatedly asks the user to
enter two money strings, and then displays the sum as a money string. Here’s how the
class specifier might look:
class bMoney
{
private:
long double money;
public:
bMoney();
bMoney(char s[]);
void madd(bMoney m1, bMoney m2);
void getmoney();
void putmoney();
};
LATEST TUTORIALS
APPROVED BY CLIENTS