Weekly Temperatures with Validation
- 1. The temperature must be numeric
- 2. The temperature must be between −50 and +130
If any single input field is incorrect, you must identify the field and the error by printing a message in the StatusStrip control and moving the focus to the incorrect field.
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
Pearson eText for Starting Out With Visual Basic -- Instant Access (Pearson+)
Additional Engineering Textbook Solutions
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Starting Out with Python (3rd Edition)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Problem Solving with C++ (10th Edition)
Java: An Introduction to Problem Solving and Programming (7th Edition)
- Theater RevenueA movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie company. Create a GUI application that allows the user to enter the following data into text fields:� Price per adult ticket� Number of adult tickets sold� Price per child ticket� Number of child tickets soldThe application should calculate and display the following data for one night�s box office business at a theater:� Gross revenue for adult tickets sold. This is the amount of money taken in for all adult tickets sold.� Net revenue for adult tickets sold. This is the amount of money from adult ticket sales left over after the payment to the movie company has been deducted.� Gross revenue for child tickets sold. This is the amount of money taken in for all child tickets sold.� Net revenue for child tickets sold. This is the amount of money from child ticket sales left over after the payment to the movie company has been deducted.� Total gross revenue. This…arrow_forwardSpecifications: Lions, Tigers, and Bears Pet Clinic needs an application that displays basic services. The application should be designed with checkboxes to select the various services (such as office call, vaccination, grooming, etc). As each service is selected, the charge for the service should display in an associated label. (When the checkmark is removed, the amount should be removed). As each selection is made, the charges should be added into the total (a variable… consider scope), and displayed in a Total Due area on the application (currency format). Align all numeric data appropriately. Consider what should happen when the checkmark is removed. Include at least 8 services that your pet clinic performs. Include a Clear and Exit button. The clear should clear all checkboxes, appropriate labels, and the total variable. Use the standard Microsoft naming conventions for all controls. Include appropriate comments in your code. This is for intro to C# Can't use parse. Thank…arrow_forwardAlert dont submit AI generated answer.arrow_forward
- ProgramName: Chapter3StadinumSeatingProgram There are three seating categories at an athletic stadium. For a baseball game, Class A seats cost $15 each, Class B seats cost $12 each, and Class C seats cost $9 each. Create an application that allows the user to enter the number of tickets sold for each class. The application should be able to display the amount of income generated from each class of ticket sales and the total revenue generated. The application's form should resemble the one shown in below. X A Stadium Seating Revenue Generated Tickrts Sød Enter the rumber of tickets sold for coch dass of sects. Cass A Class B Cass A: lass C Caes B: Oless C Total Calculate Revenue Cear Ext Use the following sets of test data to determine if the application is calculating properly:arrow_forwarddesign pattern question :- Using the state pattern, you have to implement an application that help track the item ordered from online shop. The client orders an item from online shop, then item can go to post office, then it will be delivered to the user home. Or the item after being ordered it goes to the post office, then the user will pick it up from the post office. In both cases; either take the item from the post office or has it delivered to the client's home represents the end of the process. Q1)Draw the state diagram that shows all possible states and transitions? Q2) Write code of the Ordered state? Q3) Write the implementation of the ShopOrder class; most important things are the states declaration, the constructor, a function to return robot statearrow_forwardWhen an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period:d =1/2 gt2The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time in seconds that the object has been falling. Create an application that allows the user to enter the amount of time that an object has fallen and then displays the distance that the object fell. The application should have a method named FallingDistance. The FallingDistance method should accept an object’s falling time (in seconds) as an argument. The method should return the distance in meters that the object has fallen during that time interval.arrow_forward
- Create an application that lets the user enter his or her weight (in pounds) and height (in inches). The application should display the user’s body mass index (BMI). The BMI is often used to determine whether a person is overweight or underweight for his or her height. A person’s BMI is calculated with the following formula: BMI = weight × 703 ÷ height2arrow_forwardmake a payroll application that will have a group box titled Payroll Information. The group box will have textboxes and labels for the user to enter the following information: Employee ID, Employee Name, Hourly Rate, and Weekly Hours Worked. There will also be a Submit and Display button (see left side on example form below).On the opposite side of the form you will need a heading and 2 labels for each of the following: Employee ID, Employee Name, Hourly Rate, Weekly Hours Worked, Overtime Hours Worked, Overtime Pay, Gross Pay, Social Security, FICA, and Net Pay. (see right side on example form below)There should also be a functional button for Clear (clears textboxes and non-identifying labels) and Exit.You should include a class called Payroll that creates private variables for id, name, wage, hours worked, social security Tax, FicaTax, gross pay, net pay, overtime hours and overtime pay. You should also have a private constant for Social Security Tax Percentage set to 6.2% and Fica…arrow_forwardTEMPERATURE CONVERTER WEBSITE The user will input a temperature in either Fahrenheit or Celsius and press a "convert" button. The converted temperature will then be displayed with the correct unit. Your Ul should include four main elements: Input field for the user to type in their temperature - don't forget to validate that the input is a number! Dropdown menu or radio button for the user to choose if they are inputting in Celsius or Fahrenheit "Convert" button to trigger the temperature conversion Display area for the final converted temperature and unit For an extra challenge: You can add in a third conversion option to convert from and to Kelvin as well. please Don't Copy from internetarrow_forward
- Tip, Tax, and Total Create an application that lets the user enter the food charge for a meal at a restaurant. When a button is clicked, the application should calculate and display the amount of a 15 percent tip, 7 percent sales tax, and the total of all three amounts.arrow_forwardSales Tax and Total Create an application that allows the user to enter the amount of a purchase. The program should then calculate the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax).arrow_forwardJava Programming Joyce Farrell 9th edition Chapter 15-8 Write a JavaFX application that allows the user to choose insurance options. Use a ToggleGroup to allow the user to select only one of two insurance types—HMO (health maintenance organization) or PPO (preferred provider organization). Use CheckBoxes for dental insurance and vision insurance options; the user can select one option, both options, or neither option. As the user selects each option, display its name and price in a TextField; the HMO costs $200 per month, the PPO costs $600 per month, the dental coverage adds $75 per month, and the vision care adds $20 per month.arrow_forward
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L