Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
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.
Expert Solution & Answer
Trending nowThis is a popular solution!
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.…
Microsoft Visual C# 7th edition. need help, please. Thanks
In previous chapters, you created applications for Marshall’s Murals.
Now, modify the version of the MarshallsRevenue program created in Chapter 5 so that after mural data entry is complete, the user is prompted for the appropriate number of customer names for both the interior and exterior murals and a code for each that indicates the mural style:
L for landscape
S for seascape
A for abstract
C for children’s
O for other
When a code is invalid, re-prompt the user for a valid code continuously. For example, if Y is input, output Y is not a valid code, and re-prompt the user until a valid code is entered.
After data entry is complete, display a count of each type of mural. For example the output should be in the following format with the correct number next to each mural type:
The interior murals scheduled are: Landscape 1 Seascape 2 Abstract 1 Children's 3 Other 9 The exterior murals scheduled are: Landscape 4 Seascape 0…
JAVA Script
Create a form that has a last name, a first name, an email address, a drop-down listing of 10 cities in Massachusetts. The list is to be sorted (hint: think array), an email address, and a zip code field. Each field is to be process through a validation function. You may use one function for each but if you are creative you should be able to use just one function. The drop-down listing will not require validation because they will be choosing from a list that you are providing.
This input from must be styled and show an effect to the user as to which field that are currently providing input.
Chapter 6 Solutions
Microsoft Visual C#
Knowledge Booster
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
- In java program, please find out the total population for United Kingdom with data that store in text file. The program also should able to display how much average new born per day based the dataset for country specify by user.Text file: (actual file have 500 rows and more country)country,date,total_population,new_born, new_deathUnited Kingdom, 2020-02-24, 63475839, 354, 34,Afghanistan, 2020-02-24, 56213485, 524, 29,United Kingdom, 2020-02-24, 63475702, 602, 56,Afghanistan, 2020-02-25, 56213954, 601, 65,arrow_forward3. Which among the following shows a valid use of the Direction enumeration as a parameter to the moveCharacter function? Select al that apply. enum Direction { case north, south, west, east}func moveCharacter(x: Int, y: Int, facing: Direction) {// code here} moveCharacter(x: 0, y: 0, facing: .southwest) moveCharacter(x: 0, y: 0, facing: Direction.north) moveCharacter(x: 0, y: 0, facing: .south) moveCharacter(x: 0, y: 0, facing: Direction.northeast)arrow_forwardImplement the "Remove song" function. Prompt the user for the unique ID of the song to be removed.Ex: REMOVE SONG Enter song's unique ID: JJ234 "All For You" removedarrow_forward
- Write a program (call it chr21_gene_names.py) that asks the user to enter a gene symbol and then prints the description for that gene based on data from the chr21_genes.txt file. The program should give an error message if the entered symbol is not found in the table (the user should should not have to worry about case, i.e. it will be a case-insensitive search). The program should continue to ask the user for genes until "quit" or "exit" is given (case-insensitive). Make sure to prompt the user to enter the quit to end the program. Use Dictionaries to solve this problem.HINT: Feel free to use as Dictionary of Dictionaries, but it is not required. HINT: First read the entire text file into a Dictionary that maps the association between gene symbol and description. Once again, make sure to use a Dictionary. Remember to have these command line options: $ python3 chr21_gene_names.py -h usage: chr21_gene_names.py [-h] -i INFILE Open chr21_genes.txt, and ask user for a gene name optional…arrow_forwardPlease modify the code below for "Current Date" ********************************************************************** from pandas_datareader import data as pdrimport yfinance as yfin # Work around until# pandas_datareader is fixed.import datetimeimport pandas as pdimport matplotlib.pyplot as pltimport numpy as np# Show all columns.pd.set_option('display.max_columns', None)pd.set_option('display.width', 1000)def getStock(stk, numDays):print(stk)# Only gets up until day before during# trading hoursdt = datetime.date.today()# For some reason, must add 1 day to get current stock prices# during trade hours. (Prices are about 15 min behind actual prices.)dtNow = dt + datetime.timedelta(days=1)dtNowStr = dtNow.strftime("%Y-%m-%d")dtPast = dt + datetime.timedelta(days=-numDays)dtPastStr = dtPast.strftime("%Y-%m-%d")yfin.pdr_override()df = pdr.get_data_yahoo(stk, start=dtPastStr, end=dtNowStr)return df################################################################### CONFIGURATION…arrow_forwardpls help me databastearrow_forward
- Please help me with my assignment I need to submit this for today. Write a function named test_sqrt that prints a table like the following using a while loop, where "diff" is the absolute value of the difference between my_sqrt(a) and math.sqrt(a). a = 1 | my_sqrt(a) = 1 | math.sqrt(a) = 1.0 | diff = 0.0a = 2 | my_sqrt(a) = 1.41421356237 | math.sqrt(a) = 1.41421356237 | diff = 2.22044604925e-16a = 3 | my_sqrt(a) = 1.73205080757 | math.sqrt(a) = 1.73205080757 | diff = 0.0a = 4 | my_sqrt(a) = 2.0 | math.sqrt(a) = 2.0 | diff = 0.0a = 5 | my_sqrt(a) = 2.2360679775 | math.sqrt(a) = 2.2360679775 | diff = 0.0a = 6 | my_sqrt(a) = 2.44948974278 | math.sqrt(a) = 2.44948974278 | diff = 0.0a = 7 | my_sqrt(a) = 2.64575131106 | math.sqrt(a) = 2.64575131106 | diff = 0.0a = 8 | my_sqrt(a) = 2.82842712475 | math.sqrt(a) = 2.82842712475 | diff = 4.4408920985e-16a = 9 | my_sqrt(a) = 3.0 | math.sqrt(a) = 3.0 | diff = 0.0 Modify your program so that it outputs lines for a values from 1 to 25 instead of…arrow_forwardIn the attached city list.txt file, the names of the provinces in Turkey are given in a single line according to the format given in Figure 1. In the application you will write, write the city names read from this file into the license plate list.txt file in the format shown in Figure 2. In more descriptive terms, citylist.txt is a file given to you. license plate list.txt is the file you will get with your code. city list: Adana, Adıyaman, Afyon, Ağrı, Amasya, Ankara, Antalya, Artvin, Aydın, Balıkesir, Bilecik, Bingöl, Bitlis, Bolu, Burdur, Bursa, Çanakkale, Çankırı, Çorum, Denizli, Diyarbakır, Edirne, Elazığ, Erzincan, Erzurum, Eskişehir, Gaziantep, Giresun, Gümüşhane, Hakkari, Hatay, Isparta, İçel (Mersin), İstanbul, İzmir, Kars, Kastamonu, Kayseri, Kırklareli, Kırşehir, Kocaeli, Konya, Kütahya, Malatya, Manisa, Kahramanmaraş, Mardin, Muğla, Muş, Nevşehir, Niğde, Ordu, Rize, Sakarya, Samsun, Siirt, Sinop, Sivas, Tekirdağ, Tokat, Trabzon, Tunceli, Şanlıurfa, Uşak, Van, Yozgat,…arrow_forwardb. ID: A Name: 0. A summer camp offers a morning session and an afternoon session. The list morningList contains the names of all children attending the morning session, and the list afternoonList contains the names of all children attending the afternoon session. Only children who attend both sessions eat lunch at the camp. The camp director wants to create lunchList, which will contain the names of children attending both sessions. The following code segment is intended to create lunchList, which is initially empty. It uses the procedure IsFound (list, name), which returns true if name is found in list and returns false otherwise. FOR EACH child IN morningList 11 Which of the following could replace so that the code segment works as intended? IF ((IsFound (morningList, child)) OR (IsFound (afternoonList, child))) IF (ISFound (afternoonList, child)) APPEND (lunchList, child) APPEND (lunchList, child) a. { C. IF (IsFound (lunchList, child) ) IF (IsFound (morningList, child)) APPEND…arrow_forward
- Fill in the loop table with the correct values, Each row should represent the values of the variables at the line with the comment LOCATION. You don't necessarily need to fill out all of the rows on the provided fable. If you don't fill up the whole table, that isn't necessarily wrong! 1 - 2 a - 10 name - 'AL' while i < 9: if name 'AL': 1: 2 nam AL intinl else: if name < 'NAPOLEON': name - 'NASH elif name < 'NATE': name - 'SAM' else: name- 'AL ' # LOCATIONarrow_forwardWrite a script that creates and calls a function named fnStudentUnits that calculates the total course units of a student in the StudentCourses table. To do that, this function should accept one parameter for the student ID, and it should return the sum of the course units for the student. The SELECT statement that calls the function should return the StudentID from the StudentCourses table, the CourseNumber and CourseUnits from the Courses table, and the value return by the fnStudentUnits function for that student.arrow_forwardPlease may you help with question in Java languagearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning