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

Concept explainers

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

Program Plan:

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.

Blurred answer
Students have asked these similar questions
Slappy’s Software Sales AssignmentYou have been hired by Slappy’s Software Sales to write a program to figure thetotal cost to customers that order Slappy’s software packages.Discounts are given based on the number of units sold:Number of Units Sold Discount Amount1 – 9 None10 – 19 20%20 – 49 30%50 – 99 40%100 or more 50%Create a form similar to this:The three boxes are labels. Remember to use the Auto Size and Border Styleproperties.The program should read the number of units sold and figure a base cost. Theunits cost $99 each. A discount should then be figured and subtracted from thebase cost. The subtotal, discount amount and total cost should be displayed, ascurrency, in the appropriate labels.Here are some screen shots of the running program:Set the tab order and access keys.Put comments in your program as to what each section is doing.Use constants for the discount rates and base price.
A company accepts user orders for its products interactively. Users might make the following errors as they enter data: The item number ordered is not numeric, too low (less than 0), or too high (more than 9999). The quantity is not numeric, too low (less than 1), or too high (more than 12). The item number is not a currently valid item. The company’s current inventory consists of the following items listed in Table: item number                       price 111                                      0.89 222                                       1.47 333                                       2.43 444                                       5.99 Create a class that stores an array of usable error messages; save the file as OrderMessages.java. Create your own OrderException class that stores one of the messages; save the file as OrderException.java. Create an application that contains prompts for an item number and quantity. Allow for the possibility of nonnumeric entries as well as…
flowchart

Chapter 2 Solutions

Microsoft Visual C#

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
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT