CIT 230-1001 and 3001, Advanced Java, Spring 2017 Instructor: Brian Bourgon Homework #4 Create a program...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
CIT 230-1001 and 3001, Advanced Java, Spring 2017 Instructor: Brian Bourgon Homework #4 Create a program for a simple scheduler with the following requirements: There will be a DayOfWeek enum where each of the days is included (MONDAY, TUESDAY, etc.) There will be an appointment class with three properties: • day of type DayOfWeek time of type String ■ Data protection will ensure that the first 1-4 characters are numeric and the last character is either a orp (e.g. 315a, 1230p, 1p) An Exception will be thrown if an invalid data type is entered 。 appointment of type String The main program will be a JavaFX GUI that uses 5 VBoxes inside a single HBox (these are layouts). Each VBox will have a day label (Monday, Tuesday, Wednesday, etc.), a time text box an appointment detail text box. ⚫ There will be three buttons (you may arrange these in your interface however you like): "Submit" which will save the data into an ArrayList of Appointment objects, "Clear" which will remove the data in the text boxes, and "Open" which will take the data saved in the ArrayList and populate it into the text boxes. Handle all Exceptions thrown Follow the standard coding conventions used in Java This assignment is intended to get you to demonstrate knowledge of basic GUI design, basic Event handling, enumerations, and using API classes we have not reviewed in class. CIT 230-1001 and 3001, Advanced Java, Spring 2017 Instructor: Brian Bourgon Homework #4 Create a program for a simple scheduler with the following requirements: There will be a DayOfWeek enum where each of the days is included (MONDAY, TUESDAY, etc.) There will be an appointment class with three properties: • day of type DayOfWeek time of type String ■ Data protection will ensure that the first 1-4 characters are numeric and the last character is either a orp (e.g. 315a, 1230p, 1p) An Exception will be thrown if an invalid data type is entered 。 appointment of type String The main program will be a JavaFX GUI that uses 5 VBoxes inside a single HBox (these are layouts). Each VBox will have a day label (Monday, Tuesday, Wednesday, etc.), a time text box an appointment detail text box. ⚫ There will be three buttons (you may arrange these in your interface however you like): "Submit" which will save the data into an ArrayList of Appointment objects, "Clear" which will remove the data in the text boxes, and "Open" which will take the data saved in the ArrayList and populate it into the text boxes. Handle all Exceptions thrown Follow the standard coding conventions used in Java This assignment is intended to get you to demonstrate knowledge of basic GUI design, basic Event handling, enumerations, and using API classes we have not reviewed in class.
Expert Answer:
Answer rating: 100% (QA)
Heres a basic implementation of the scheduler program following the given requirements import javafxapplicationApplication import javafxgeometryInsets import javafxgeometryPos import javafxsceneScene ... View the full answer
Related Book For
Project management the managerial process
ISBN: 978-0073403342
5th edition
Authors: Eric W Larson, Clifford F. Gray
Posted Date:
Students also viewed these programming questions
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
Write a StockAccount client that builds an array of StockAccount objects, computes the total value of each account, and prints a report for the accounts with the largest and smallest values. Assume...
-
Lakshmi Ltd. reports the following inventory transactions in a periodic inventory system for the month of June. A physical inventory count determined that 1,600 units were on hand at the end of the...
-
A stock has had the following year-end prices and dividends: What are the arithmetic and geometric returns for the stock? YEAR PRICE DIVIDEND $30.06 29.63 32.40 33.27 15.32 15.04 S0.88 1.00 1.12 1.24...
-
Walt Disney reports the following information for its two Parks and Resorts divisions. Assume Walt Disney uses a balanced scorecard and sets a target of 85% occupancy in its resorts. Using Exhibit...
-
Apachi Company ended its fiscal year on July 31, 2010. The company??s adjusted trial balance as of the end of its fiscal year is as shown at the top of page 182. Instructions(a) Prepare the closing...
-
5. Let v = [1,0], w = [1,1]. Find the projector P that projects R onto (v) along (u). What are range(P) and null(P)?
-
The following information is available for ADT Company, which produces special-order security products and uses a job order costing system. Overhead is applied using a predetermined overhead rate of...
-
Discussion Points: Compare and Contrast Web Analytics methodology Compare and Contrast Web analytic tools (at least two) used to measure metrics Analyze Google Analytics Products
-
You have been asked the following questions: If debt can reduce the weighted average cost of capital for project appraisal, why does it then increase the risk of a company? Is it possible for a...
-
Do you agree or disagree with the following statement? A firms shareholders will never want the firm to invest in projects with negative net present values. Why? What steps can shareholders take to...
-
Explain why, in a world with no taxes, transaction costs or financial distress costs, maximizing firm value is the same as maximizing share value. Are business risk and financial risk the same thing?...
-
In all countries, it appears that some firms have a target debt ratio while others do not have one. What does this say about the validity of the trade-off theory, pecking order theory, and market...
-
T-bills currently yield 2.1 per cent and the Man Group plc share price is 0.97. There is no possibility that the equity will be worth less than 0.50 per share in one year. (a) What is the value of a...
-
Q1.Describe, in your own words, the differences between the Internet, Intranets, and extranets. Q2. Describe, in your own words, what e-Business is and what benefits it brings (from a supply chain...
-
What impact has the Internet had on the globalization of small firms? How do you think small companies will use the Internet for business in the future?
-
You are creating a customer database for the Modesto Nuts minor league baseball team. Draw a project network given the information below. Complete the forward and backward pass, compute activity...
-
The National Oceanic Research Institute is planning a research study on global warming in Antarctica. The 16-month network schedule is presented below. It is followed by budgets for each activity....
-
You work for LL Company, which manufactures high-end optical scopes for hunting rifles. LL Company has been the market leader for the past 20 years and has decided to diversify by applying its...
-
For the three-room house shown in Figure 7.35, all rooms are perfect squares and have the same dimensions. An air conditioner produces an equal amount of heat flow \(q_{\mathrm{ho}}\) out of each...
-
Figure 7.18 shows a liquid-level system in which two tanks have cross-sectional areas \(A_{1}\) and \(A_{2}\), respectively. The volume flow rate into tank 1 is \(q_{\mathrm{i}}\). A pump is...
-
Consider the single-tank liquid-level system shown in Figure 7.19, where the volume flow rate into the tank through a pipe is \(q_{\mathrm{i}}\). The liquid leaves the tank through an orifice of area...
Study smarter with the SolutionInn App