Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
bartleby

Concept explainers

Question
Book Icon
Chapter 9, Problem 2CP
Program Plan Intro

Program Plan:

  • The class Mural is defined which has a data type custName of type string, code of type char, descrp of type string and two static arrays muralCode and muralDescription.
  • Inside MarshallRevenue programfollowing functions are used:
  • getMonth(), getMural(), and getRevenue()to get month, number of murals and revenue generated from all murals.
  • Inside main method of MarshallRevenue program following variables are used:
  • month, exteriorMurals, andinteriorMuralstostore the month and number of interior and exterior murals.
  • An array of object of class Mural is declared of size equal to number of total exterior and interior murals.
  • A for loop is used to set code and custName property of each array object.
  • A for loop is used to read and display the customers names belonging to each mural category.

Program Description:

The main purpose of the program is to implement the mural class and use this class inside the MarshallRevenue program.

Blurred answer
Students have asked these similar questions
Write a program that will contain an array of person class objects. The program should include two classes: 1) One class will be the person class. 2) The second class will be the team class, which contain the main method and the array or array list. The person class should include the following data fields; Name Phone number Birth Date Jersey Number Be sure to include get and set methods for each data field.The team class should contain the data fields for the team, such as: Team name Coach name Conference name The program should include the following functionality. Add person objects to the array; Find a specific person object in the array; (find a person using any data field you choose such as name or jersey number) Output the contents of the array, including all data fields of each person object. (display roster)
This is Phython Programming
Rectangle Object Monitoring Create a Rectangle class that can compute the total area of all the created rectangle objects using static fields (variables).  Remember that a Rectangle has two attributes: Length and Width.  Implement the class by creating a computer program that will ask the user about three rectangle dimensions.  The program should be able to display the total area of the three rectangle objects.  For this exercise, you are required to apply all OOP concepts that you learned in class.   Sample output: Enter Length R1:  1 Enter Width  R1:  1 Enter Length R2:  2 Enter Width  R2:  2 Enter Length R3:  3 Enter Width  R3:  3 The total area of the rectangles is 14.00   Note:  All characters in boldface are user inputs.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage