Concept explainers
Following variables are used in the program:
Interior_mur,Exterior_mur :To store the number of interior and exterior murals scheduled to be painted.
Interior_rev,Exterior_rev,Total_rev: To store the computed value of interior, exterior and total revenue.
Following functions are used in the program:
ReadLine(): To input salaries of different employees from user in string format.
WriteLine(): To display the increased salary and explanatory text.
Summary Introduction:
Program will use Main () method to ask the user to enter number of interior and exterior murals using ReadLine() method. The expected revenue for each of murals is calculated along with total revenue and then displayed to user using WriteLine() method. Program Description:
Purpose of the program is to take input number of interior and exterior murals then compute the total expected revenue for each type of mural and display the total revenue.
Trending nowThis is a popular solution!
Chapter 2 Solutions
Microsoft Visual C#
- In Chapter 2, you created a program for Marshalls Murals that prompts a user for the number of interior and exterior murals scheduled to be painted during the next month. The program computes the expected revenue for each type of mural when interior murals cost $500 each and exterior murals cost $750 each. The application should display, by mural type, the number of murals ordered, the cost for each type, and a subtotal. The application also displays the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones. Now create an interactive GUI program named MarshallsRevenueGUI that performs all the same tasks.arrow_forward. The O’Neill High School Performing Arts Center auditorium contains 20 rows (numbered 1through 20) with 40 seats each (numbered 1 through 40). Write an application that allows auser to continuously enter a row and seat request until a sentinel value is entered. If the rowor seat number is too high, issue an error message. Otherwise, determine whether the seat hasalready been reserved. If so, display an error message; if not, then charge the user $7.50 for aticket and display a running total of the user’s purchase. When the user enters a sentinel,display the number of seats taken and the number still available in the auditorium.arrow_forwardIn this exercise, you modify one of the Seminars applications from Chapter 4’s Apply lesson. Open the Seminars Solution.sln file contained in the Seminars Solution-CheckBox folder. Create an event-handling Sub procedure named ClearAmountDue and associate it with each check box’s CheckChanged event. Then, create a function that determines which (if any) check boxes are selected and then adds the associated fee to the total due. The function should return the total due to the statement that invoked it. Also, make the necessary modifications to the btnCalc_Click procedure’s code. Save the solution and then start and test the application. In VB please. Code Given: Option Explicit OnOption Strict OnOption Infer Off Public Class frmMain Private Sub btnCalc_Click(sender As Object, e As EventArgs) Handles btnCalc.Click' Calculate and display the amount due. Dim intAmountDue As Integer ' Determine which (if any) check boxes are selected' and add the associated fee to the amount due.If…arrow_forward
- The sales manager wants an application that allows him toenter the current bonus rate. The program should display each sales person’s number(1 through 10), total sales amount, and total bonus amount. It also should displaythe total bonus paid to all salespeople. Display the bonus amounts with two decimalplaces. Save and then run the programarrow_forwardCompany ABC in Kenya pays its employees based on a commission of the sales they make as illustrated in the table belowarrow_forwardThe Financial officer at RGI wants you to develop an application that will evaluate the company's asset's annual depreciation using the double-declining balance and sum-of-the years' digit method. The Financial officer will enter the asset's cost, useful life (in years), and salvage value (which is the value of the asset at the end of its useful life). The sample of the application can be seen in Figure 2. The interface provides text boxes for entering the asset cost and salvage value. It also provides a list box for selecting the useful life, which ranges from 3 to 20 years. The depreciation amounts are displayed in the list boxes. (You can use the DDB and SYD functions in Microsoft Excel to verify the amounts shown in Figure 2 are correct). Create a windows form application using the name RGI annual asset depreciation App. You can use the visual basic's Financial.DDB method to calculate the double-declining balance depreciation and use its Financial.SYD method to calculate the…arrow_forward
- You are working as a computer programmer for a mortgage company that provides loans to consumers for residential housing. Your task is to create an application to be used by the loan officers of the company when presenting loan options to its customers. The application will be a mortgage calculator that determines a monthly payment for loans and produces an amortization schedule for the life of the loan. The company offers 10-, 15-, and 30-year fixed loans. Inputs The program should initially prompt the user (the loan officer) for the principal of the loan (i.e. the amount that is being borrowed). It should then ask him or her to enter an annual interest rate for the loan. The final input should be the number of years that the loan will be outstanding. Because the company only offers three different terms (10-, 15-, and 30-year loans), the program should ensure that no other terms are entered. c++ codingarrow_forwardA Sub procedure named GetEndInv is passed four Integer variables from its calling statement. The first three variables store the following three values: beginning inventory, number sold, and number purchased. The procedure should use these values to calculate the ending inventory, and then store the result in the fourth variable. Which of the following procedure headers is correct? a. Private Sub GetEndInv(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByRef intFinal As Integer) b. Private Sub GetEndInv(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByVal intFinal As Integer) c. Private Sub GetEndInv(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer, ByVal intFinal As Integer) d. Private Sub GetEndInv(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer, ByRef intFinal As Integer)arrow_forwardCreate a financial application that helps plan for retirement. The user will enter the data of their present age. Everyone is considered to be retiring at 70 for purposes of this application. The user will also enter how much money per year they will place into the retirement plan. I have to do this using Flowgorithm.arrow_forward
- The user should be able to test different monthly deposit amounts, interest rates, and lengths oftime to see how increases and decreases impact their investment growth.4. Your code will need to account for the following:a. Month: The number of months based on user input in the “Number of Years” fieldb. Opening Amount: The initial investment amount as well as the opening balance eachmonth, which includes interestc. Deposited Amount: The dollar amount the user plans to deposit each month. This valuewill be the same every month for the duration of the investment.d. Total: The sum of the opening and deposited amountse. Interest: Money earned based on the “annual interest” rate input by the user. Theinterest based on an opening amount of $1 and a deposited amount of $50 with aninterest rate of 5% compounded monthly is:(Opening Amount + Deposited Amount) * ((Interest Rate/100)/12)OR(1 + 50) * ((5/100)/12)Note: Dividing by 100 converts the interest rate percentage to a decimal.Note: 12 is the…arrow_forwardIn the following procedure, the parameter age represents a person's age. The procedure is intended to return the name of the age group associated with age. People who are under 18 are considered minors, people who are 65 and older are considered senior citizens, and all other people are considered adults. The procedure does not work as intended. Line 1: PROCEDURE ageGroup(age) Line 2: } result "adult" Line 3: Line 4: IF(age 65) Line 5: { Line 6: result "senior citizen" Line 7: Line 8: RETURN(result) Line 9: Line 10: result "adult" Line 11: IF(age < 18) Line 12: Line 13: result "minor" Line 14: Line 15: RETURN(result) Line 16: } ill cause the procedure to work as intended?arrow_forwardQuestion No: 01 202 123nt505 sa subjective question, hence you have to write your answer in the Text-Field given below. 76610 The e popular amusement ride known as the corkscrew has a helical shape. The parametric equations for a circular helix are LP/05 x = a cos t ya sin t z = bt where a is the radius of the helical path and b is a constant that determines the "tightness" of the path. In addition, if b>0, the helix has the shape of a right-handed screw; if b < 0, the helix is left-handed. Obtain the three-dimensional plot of the helix (write program or only commands) for the following three cases and compare their appearance with one another. Use 0 <= t <=10 pi and a=1 a. b- 0.1 b. b= 0.2 c. b= -0.1arrow_forward
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT