Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 12, Problem 6E
Create a project named BreezyViewApartments that contains a Form for an apartment rental service. Allow the user to choose a number of bedrooms, number of baths, and view—street or lake. After the user makes selections, display the monthly rent, which is calculated using a base price of $450, $550, or $700 per month for a one-, two-, or three-bedroom apartment, respectively. $75 is added to the base price for more than one bath, and $50 additional is added to the price for a lake view. Use the Controls that you think are best for each function. Label items appropriately, and use fonts and colors to achieve an attractive design.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Create a project named BreezyViewApartments that contains a Form for anapartment rental service. Allow the user to choose a number of bedrooms, number ofbaths, and view—street or lake. After the user makes selections, display the monthlyrent, which is calculated using a base price of $450, $550, or $700 per month for aone-, two-, or three-bedroom apartment, respectively. $75 is added to the base pricefor more than one bath, and $50 additional is added to the price for a lake view. Usethe Controls that you think are best for each function. Label items appropriately, anduse fonts and colors to achieve an attractive design.
How do i
Create a project named BreezyViewApartments that contains a Form for an apartment rental service. Allow the user to choose a number of bedrooms, number of baths, and view—street or lake. After the user makes selections, display the monthly rent, which is calculated using a base price of $450, $550, or $700 per month for a one-, two-, or three-bedroom apartment, respectively. $75 is added to the base price for more than one bath, and $50 additional is added to the price for a lake view. Use the Controls that you think are best for each function. Label items appropriately, and use fonts and colors to achieve an attractive design. Along with the calculate button (or whatever you call it), please add 2 more buttons--clear and exit. Clear should reset the form so all textboxes and answers are empty. Exit should close the program.
How can errors occur? Make sure you have exception handling in place to ensure that the program does not crash.
In this project you complete the script for a web form that collects billing and shipping information. Because the shipping address and billing address are often the same, this form will include a checkbox to copy the shipping address values into the corresponding billing address fields. Also, instead of using browser error bubbles to report invalid data, display the text of the error message in a box at the bottom the form and prevent the browser from showing error bubbles in response to validation errors. A preview of the form is shown in Figure 6-40.
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
- Create a project named GuessANumber with a Form that contains a guessing game with five RadioButtons numbered 1 through 5. Randomly choose one of the RadioButtons as the winning button. When the user clicks a RadioButton, display a message indicating whether the user is right. Add a Label to the Form that provides a hint. When the users mouse hovers over the label, notify the user of one RadioButton that is incorrect. After the user makes a selection, disable all the RadioButtons. You can create a random number that is at least min but less than max using the following statements: Random ran = new Random(); int randomNumber; randomNumber = ran.Next(min, max);arrow_forwardCreate a project named ClassicBookSelector that contains a Form with a ListBox that lists at least five classic books that you think all educated people should have read. When the user places the mouse over the ListBox, display a Label that contains a general statement about the benefits of reading. The Label disappears when the users mouse leaves the ListBOX area. When the user clicks a book title in the ListBOX, display another Label that contains a brief synopsis of the specific book. Also, change the BackColor of the Form to a different color for each book.arrow_forwardexcel vba project, please explain it with Screenshots. Prepare a userform where the input fields are O First Name (text) O Last Name (text) O Student No (unique number) O GPA (decimal number between 0.00 and 4.00) O Number of Credits Taken (integer between 0 and 150) In the form there should be Save Data, Close Form buttons Prepare a second form (reachable from the first form) where O there are summarizing fields where you calculate the min/max/average GPA of the class room. O It should also show the top 3 students ranked with respect to their GPA O You can display the number of credits taken by a student when you enter the student no (so there will be a field where you enter student no. And when you click it, it should display the credits of the corresponding student) Fill with at least 10 student data (you can randomly give numbers and names...)arrow_forward
- Create a simple website that does the following: The metric system has these for length:• Nanometers• Micrometers• Centimeters• Decimeters• Meters, and• Kilometers The imperial system has these for length:• Inches• Feet• Yards• Miles• Nautical miles, and• Leagues Create a website with a system that can convert a value, vice-versa from one metric to imperialsystem.For example, the user may want to convert 1 meter to either inches, feet or miles, as well as from 1mile to nanometers, meters or kilometers. Deliverables 1. The interface of the pages in the website.2. The source code of the HTML, PHP, CSS or JavaScript (if any) used in the pages.arrow_forwardEach of the following projects in the Chapter.03 folder of your downloadable student files has syntax and/or logical errors. In each case, immediately save a copy of the project folder with a new name that begins with Fixed before you open the project in Visual Studio. For example, the project folder for DebugThree1 will become FixedDebugThree1. All the files within the folders have already been named with the Fixed prefix, so you do not need to provide new filenames for any of the files in the top-level folder. After naming the new folder, open the project, determine the problems, and fix them. a. DebugThree1 b. DebugThree2 c. DebugThree3 d. DebugThree4arrow_forwardCreate a simple PHP application that will ask users to enter Name, E-Mail, and Phone Number values (see the first figure), and when the submit button is clicked, will then use the data from the text fields to add more lines at the end of the message (see the second figure). Make sure you add appropriate input validations for all the fields. Then, test the application by entering appropriate data in the name, e-mail, and phone number boxes.arrow_forward
- Open the application in the folder under the coursework. Open the HTML file and notice that an Invoice Date field has been added. Then, open the HTML file and notice that it includes a getFormattedDate() function that formats the Date object that’s passed to it in MM/DD/YYYY format and then returns the date string. Start the application, enter a subtotal, and click the Calculate button. Note that nothing is displayed in the Invoice Date field. In the click() event handler for the Calculate button, add code that gets the current date and formats it using the getFormattedDate() function. Then, add code that provides a default value of the formatted current date for the invoice date. Note that if an invoice date is entered, that date isn’t validated. Add code that sets the value of the Invoice Date field. If you’ve done this right, the application should display the current date when you click the Calculate button without entering anything in the Invoice Date field. <!DOCTYPE…arrow_forwardThis is the question I am stuck on - Add a prompt to the ShadyRestRoom application to ask the user to specify a (1) lake view or a (2) park view, but ask only if the bed size entry is valid. Add $15 to the price of any room with a lake view. If the view value is invalid, display a you selected an invalid option and assume that the price is for a room with a lake view. This is the code I have from the previous probelm but I am unsure how to add all that onto it - import java.util.Scanner; public class ShadyRestRoom2 { // Modify the code below public static void main (String args[]) { int selection; int price; String result; final int QUEEN = 1, KING = 2, SUITE = 3; final int QPRICE = 125, KPRICE = 139, SPRICE = 165; final String QSTRING = "Queen bed", KSTRING = "King bed", SSTRING = "Suite with a king bed and pull-out couch", INVALIDSTRING = "an invalid option"; Scanner in = new Scanner(System.in);…arrow_forwardGiven that the options for a set of radio buttons within the customOrder web form share the name attribute color, you can store the value of the color option selected by the user in the colorValue variable by executing the JavaScript statement _____. a. let colorValue = input[name="color"]:checked; b. let colorValue = document.customOrder.value('input[name="color"]:checked'); c. if (color[0].checked) {colorValue = color[0]value;) d. let colorValue = document.querySelector('input[name="color"]:checked').value;arrow_forward
- Create a simple PHP application that will ask users to enter Name, E-Mail, and Phone Number values (see the first figure), and when the submit button is clicked, will then use the data from the text fields to add more lines at the end of the message (see the second figure). Make sure you add appropriate input validations for all the fields.arrow_forwardPlease insert code line in the "..." above the "Main Code Section" which is at the bottom. class PriceChecker():# Constructordef __init__(self):self.levelsList = []# Properties# A property is defined like a method, but you use it in your# code like a variable (no parentheses need to followed it when used in your code)# Refer: https://www.youtube.com/watch?v=jCzT9XFZ5bw# Refer BP411 slides: Week 2 - Chapter 10 - Slides about Encapsulation and properties@propertydef levelsList(self):return self.__levelsList@levelsList.setterdef levelsList(self, newValue):self.__levelsList = newValue# Class Methods# =============# Method: Sort and Display the levelsListdef displayList(self):print(chr(27) + "[2J") # Clear the screenprint("Price Levels In The List")print("========================")# Sort the list in reverse orderself.levelsList.sort(reverse=True)# Print the items in the list (Based on the above sort, numbers should appear from large to small.)for item in self.levelsList:print(item, end=("…arrow_forwardwrite a java GUI application that will keep track of the weekly lotto numbers for a month. The application must capture the four weekly numbers entered by a user. Create four fields and a list box to display the weekly lotto numberson the form. also create a submit button that will capture the four weely numbers entered by the user.arrow_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 - CONSIGNMENT
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
Time Complexity Analysis - How To Calculate Running Time | InterviewBit; Author: InterviewBit;https://www.youtube.com/watch?v=--oxG4Q1PA0;License: Standard YouTube License, CC-BY