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
This program should be written in Java: Hamburger Joint: Hamburger ClassWrite a Hamburger class with the following six attributes: • bun - the type of bun the burger will be on • patties - the number of patties on the burger • cheese - whether or not the burger will have cheese • price - the price of the burger • toppings - an array of five toppings; it will need to start empty Write getters/setters for all attributes except the toppings array. Your constructor should create a single on white with no cheese and no toppings with a price of $2.99. Your class should include the following methods in this order, please: addCheese - this method has no parameters that adds cheese to the burger and increases the price by 75 cents superSizeIt - this method has no parameters and adds a patty to the burger and increases the price by 1.50 addToppings - this method would present the user with at least five toppings (your choice) stored in an array of String objects. If the user indicates the wants…
In Kotlin, Write a Circle data class, with a radius as a parameter to the constructor, a custom-coded property for the area, and a sizeRatio() function that takes a reference to another Circle and returns the ratio of the radius of the instance circle (the one you call the function on) to the other circle .  Use math.pow and math.PI. Write a main() that creates a circle, prints it (which will print it's automatically generated toString()), prints its radius, creates another circle, and shows the size ratio of the two.
Inside the FlightController class, you will define an object of type FlightSchedule which willcontain an array of 3 objects of type Flight. In your Flight objects, the constructor of theseobjects will ask from the user for the inputs of: flight name, launch hour, launch minutes,flight duration. The value of state of the Flight object will be assigned to “Idle” as a defaultvalue in the constructor also and you will call the member function within the Flight classwhich will calculate the landing time for your flight object by using the duration and thelaunch time. Definition of Flight class will also contain the necessary getters and setters thatare given in the diagram and needed throughout your program.In the constructor of your FlightController you will need to define a pointer that will point tothe adress of the FlightSchedule object you have created. You will send that pointer into thefunctions launchSchedule and landingSchedule in your base classes and these functions willperform a…
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