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
1, For each loop with example
2, do while loop with example
Two cars A and B leave an intersection at the same time. Car A travels west at an average speed of x
miles per hour and car B travels south at an average speed of y miles per hour. Write a program that
prompts the user to enter the average speed of both the cars and the elapsed time (in seconds) and
outputs the total distance each car has traveled as well as the shortest distance between the cars.
Output data MUST be rounded to 2 decimal places and have precision set so that all data is evenly lined
up. For simplicity, assume that decimal numbers will be no more than 8 digits long.
Decision and repetition statement with example
1,If statement
2,switch statement
3,for loop,for each loop
4,while loop, do while loop