Question: C + + Case problem 1 0 . 2 Previously , you created a Mural class for Marshall s Murals. The class holds a customer
C Case problem Previously you created a Mural class for Marshalls Murals. The class holds a customers name, a mural code, and a description. Now, add a field named Price to the Mural class that holds a price.
Now, extend the Mural class in your code to create subclasses named InteriorMural and ExteriorMural, and place statements that determine a murals price within these classes. A murals price depends on the month, as described in the case problem in Chapter of your book.
The constructor for the subclasses should have one parameter for the month the mural is scheduled.
Also create ToString methods for these subclasses that return a string containing all the pertinent data for a mural. The string should be returned in the following format shown for one exterior and one interior mural:
Exterior, Seascape mural for Customer: Steve Price $ Interior, Landscape mural for Customer: Joe Price $
In order to prepend the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements as follows: WriteLineThis is an example: value.ToStringC CultureInfo.GetCultureInfoenUS;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
