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>.
define a class length with feet (int type )and (float type) data members.define do-nothing constructor
Create a C++ Program that will identify the Discount Rate of a shopper based on issued loyalty card, take the following conditions:
Loyalty Card TypeDiscount (%)(1) Frequent Buyer10%(2) One Time Buyer0%(3) Senior Citizen15%
This should be the outcome if ever we run the program
Example:
Total Purchase Cost: Php 3000.00
Loyalty Card Type: 1
Discounted Cost: Php 2700.00