Write a complete C++ program using pointer concepts to calculate the total flooring cost of a house that has several rooms. Only one type of flooring is provided which in this case is linoleum flooring. Linoleums (sort of tiles) come with several colors, dimensions, and prices. Therefore, the program should provide a feature that allows the customer to choose the type of linoleum he or she prefers. Each linoleum has a code representing its color, dimension, and price. For example, the code W08100150 represents that the linoleum’s a) color is white (i.e., taken from the first character) b) width is 8 inches (i.e., taken from the second and third characters) c) length is 10 inches (i.e., taken from the fourth and fifth characters ) d) price is RM 1.50 (i.e., taken from the last four characters )
Write a complete C++ program using pointer concepts to calculate the total flooring cost of a
house that has several rooms. Only one type of flooring is provided which in this case is
linoleum flooring. Linoleums (sort of tiles) come with several colors, dimensions, and prices.
Therefore, the program should provide a feature that allows the customer to choose the type of
linoleum he or she prefers. Each linoleum has a code representing its color, dimension, and
price. For example, the code W08100150 represents that the linoleum’s
a) color is white (i.e., taken from the first character)
b) width is 8 inches (i.e., taken from the second and third characters)
c) length is 10 inches (i.e., taken from the fourth and fifth characters )
d) price is RM 1.50 (i.e., taken from the last four characters )
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images