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

Concept explainers

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

Program Plan:

  • Under the namespace MuralsRevenue and in class MuralsRevenue create a main method. Inside main method perform the following tasks.
  • Create two arraysinteriorMuralCustomers and exteriorMuralCustomers of type string of dimension 2 * interiorMurals and 2*exteriorMurals respectively.
  • Use for loop to read in names of customers and their talent codes for interior murals. Store each name along first row of array interiorMuralCustomers and each mural code along the second row. Use do-while loop inside this for loop to read only the valid mural codes until a right mural code is entered for each customer.
  • Do same procedure for exterior mural customers as well.
  • Next create variablesLcount, Scount, Acount, Ccount and Ocount to store the number of customers in each category.
  • Use for loop to scan through both interiorMuralsCustomer and ExteriorMuralCustomers array and increment the values of above variables as per found category.
  • Finally ask the user for a mural style category and use another for loop to list names in customer belonging to this category.

Program Description:

The main purpose of the program is to modify the MuralsRevenue program from previous chapter to get entry for names of each customer for both interior and exterior murals. Then show number of murals for each category of mural codes and also name customers as per mural codes.

Blurred answer
Students have asked these similar questions
Cargo Container Report. You will be producing a program which will allow the user to generate the container report on the following page in Container Number order or Ship Name order. The program will also the user to lookup the data for any given Container by number. The % cargo weight is the percentage of the cargo of the gross weight (cargo weight/gross weight), % total is the percentage of the cargo for that container of the total amount of cargo unloaded (cargo weight for the container / total cargo unloaded. Hint: you are expected to use methods for your calculations. The accompanying file has the data for the containers unloaded today. The data includes container number int ship name. String tare weight of the container (empty weight) int the gross weight (container plus the cargo). Int You will need to computer the cargo weight as the gross weight minus the tare weight. If you have issues reading the data with the String, you may remove the String. However, you will lose points.…
The above screen is used to browse the products table it uses the ProductDAO.java file, it calls the getProductByCriteria() function which should accept a parameter, this parameter should be the criteria that would be built from the two combo boxes and the text box, and queries the products table.The getProductByCriteria() function should return a list of Product objects that matches the criteria specified. Modify the function so that it accepts a string paramater consisting of the fields from the combo boxes and a price number from the text box separated by commas and use this string to modify the query in the function to return the desired result set.    public List<Product> getProductByCriteria()  //MAKE MODIFICATIONS TO THIS FUNCTION SO IT CAN TAKE PARAMETER(S)    {                 if (openConnection())         {             try{                               List<Product> items = new ArrayList <> ();                 Product temp = null;                 String…
switch_player(): we will allow the players to choose their own names, but for our purposes, it is easier to think of them as number (0 and 1, for indexing purposes). We will display their names to them on the screen, but in the background, we will keep track of them based on their number. This function should take 1 argument, an integer (either 0 or 1) representing the player and should return the opposite integer (1 if 0 is entered and 0 if 1 is entered). This is a simple function, but it will make our code cleaner later. Use your constants!  Using Thonny
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
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,