a. Consider the following UML diagram for a Course Registration System. As part of the system...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
a. Consider the following UML diagram for a Course Registration System. As part of the system design process, we need to firm up the relationships denoted by the dashed lines. C Program Student 1 takes ► 1..* Add Student 1..* Professor The most appropriate relationship between Student and Professor is probably some form of association. Do you think the role is Student LEARNS FROM Professor, or is it Professor TEACHES Student? Explain your answer? (2 marks) 1. If the relationship was Student LEARN FROM Professor, what would the multiplicity be? Ensure you indicate clearly which multiplicity applies to Student and which applies to Professor. Explain your decision. (2 mark) Name: What do you think is most appropriate relationship between Program and Student? When writing out the relationship, include the name/type of the relationship and, if necessary, the role, if it is uni-directional (and in which direction) or bidirectional, and/or multiplicity. Why did you select this relationship? (2 marks) Date of Birth: Course taught by b. Congratulations! You are hired as a GUI consultant to develop this app! Your first task is to improve the GUI given below for adding a new Student. Take a look at all those text fields! Can you suggest at 2 text fields that could be replaced with a more appropriate control (and what that control would be)? (2 marks) Gender 1. Course Selected ☐ X What will this program output? 1 public class Finalexamprog { TIL 1234567 2 3 4 5 6 7 8 9 10 11 12 13 14 21 22 23 24 } 15 public static void swapPrimitive(int a, int b) 16 17 18 19 20 25 26 27 28 29 public static void main(String[] args) { 30 31 } int il=10; int i2=20; System.out.println("il = "+il+" i2 = "+12); swapPrimitive (il, i2); System.out.println("il = "+il+" i2 = "+i2); Integer i3 = il; Integer i4 = 12; System.out.println("i3 = "+i3+" i4 = "+i4); swap0bject(i3, 14); System.out.println("i3 = "+13+" i4 = "+i4); } System.out.println("a = "+a+" b = "+b); int temp = a; a = b; b = temp; System.out.println("a = "+a+" b = "+b); } public static void swap0bject(Integer a, Integer b) { System.out.println("a = "+a+" b = "+b); Integer temp = a; a = b; b = temp; System.out.println("a = "+a+" b = "+b); a. Consider the following UML diagram for a Course Registration System. As part of the system design process, we need to firm up the relationships denoted by the dashed lines. C Program Student 1 takes ► 1..* Add Student 1..* Professor The most appropriate relationship between Student and Professor is probably some form of association. Do you think the role is Student LEARNS FROM Professor, or is it Professor TEACHES Student? Explain your answer? (2 marks) 1. If the relationship was Student LEARN FROM Professor, what would the multiplicity be? Ensure you indicate clearly which multiplicity applies to Student and which applies to Professor. Explain your decision. (2 mark) Name: What do you think is most appropriate relationship between Program and Student? When writing out the relationship, include the name/type of the relationship and, if necessary, the role, if it is uni-directional (and in which direction) or bidirectional, and/or multiplicity. Why did you select this relationship? (2 marks) Date of Birth: Course taught by b. Congratulations! You are hired as a GUI consultant to develop this app! Your first task is to improve the GUI given below for adding a new Student. Take a look at all those text fields! Can you suggest at 2 text fields that could be replaced with a more appropriate control (and what that control would be)? (2 marks) Gender 1. Course Selected ☐ X What will this program output? 1 public class Finalexamprog { TIL 1234567 2 3 4 5 6 7 8 9 10 11 12 13 14 21 22 23 24 } 15 public static void swapPrimitive(int a, int b) 16 17 18 19 20 25 26 27 28 29 public static void main(String[] args) { 30 31 } int il=10; int i2=20; System.out.println("il = "+il+" i2 = "+12); swapPrimitive (il, i2); System.out.println("il = "+il+" i2 = "+i2); Integer i3 = il; Integer i4 = 12; System.out.println("i3 = "+i3+" i4 = "+i4); swap0bject(i3, 14); System.out.println("i3 = "+13+" i4 = "+i4); } System.out.println("a = "+a+" b = "+b); int temp = a; a = b; b = temp; System.out.println("a = "+a+" b = "+b); } public static void swap0bject(Integer a, Integer b) { System.out.println("a = "+a+" b = "+b); Integer temp = a; a = b; b = temp; System.out.println("a = "+a+" b = "+b);
Expert Answer:
Answer rating: 100% (QA)
The provided code contains a few errors but Ill correct them for you and explain what the program wi... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Explain the organizational and individual purposes for expatriation. Why do these need to be incorporated as part of a strategic approach to managing global assignments? Solve Describe the four...
-
This is a research study, having four variables. .1)Leader humility 2)Antisocial behavior 3)mindfulness 4) Self-efficacy I need help to w.rite Abstract of this study and need you to make the sense...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Which of the following is not necessary to do before you can run a Java program? a. Coding b. Compiling c. Debugging d. Saving
-
Suppose instead that investors risk aversion increased enough to cause the market risk premium to increase by 3 percentage points. (Inflation remains constant.) What effect would this have on the SML...
-
A cylinder has 0.1 kg air at 25oC, 200 kPa with a 5 kg piston on top. A valve at the bottom is opened to let the air out and the piston drops 0.25 m towards the bottom. What is the work involved in...
-
What determines whether a target cell responds to a specific type of neurotransmitter?
-
The Rhythm Shop is a large retailer of acoustic, electric, and bass guitars. An income statement for the companys acoustic guitar department for a recent quarter is presented below: The guitars sell,...
-
A company's detailed inventory record for the month of February is as follows: Date Description Units Cost per Unit Total Cost February 1 Beginning inventory 60 $70 $ 4,200 February 6 Purchase 40 $50...
-
Download the nasdaq-by-year-historical-annual-returns dataset in Excel from Connect or Additional Student Resources.8 Note the annual stock market returns to investment in the NASDAQ stock market...
-
Discuss the importance of code of ethics in an organization?
-
What is the difference between traditional and activity-based product margins are primarily caused by a company's unit-level activities.?
-
Explain business entity convention, going concern convention and dual aspect convention and evaluate how important are they in the preparation of the three major financial statements?
-
What document provides prospective and general information about how PHI might be used or disclosed in the future?
-
Suppose a Greek tourist visits Abu Dhabi, and in particular a cloths market in Abu Dhabi Mall. The tourist bought one blue jean brand Wrangler for 159 AED and noticed that this particular jean is...
-
Preparing a Trial Balance helps a business to ensure there are no errors in the recording stage of the accounting process. Discuss.
-
[24 Points] Sackville Plastics is considering the acquisition of a new packaging machine that will apply a plastic film over a product and attach it to a cardboard backing. Hamamatsu Techwrap...
-
H Corporation has a bond outstanding. It has a coupon rate of 8 percent and a $1000 par value. The bond has 6 years left to maturity but could be called after three years for $1000 plus a call...
-
In Exercises let and g represent differentiable functions such that " # 0 and g" # 0. Show that if and g are concave upward on the interval (a, b), then + g is also concave upward on (a, b).
-
Use the graphs of and g shown in the figures to answer the following. (a) Identify the open interval(s) on which the graphs of and g are increasing or decreasing. (b) Identify the open interval(s)...
-
In Exercise use a graphing utility to graph the function and estimate the limit (if it exists). What is the domain of the function? Can you detect a possible error in determining the domain of a...
-
Which of Yellows statements regarding the factors affecting the selection of a trading strategy is correct? A. Statement 1 B. Statement 2 C. Statement 3 Robert Harding is a portfolio manager at...
-
To fill the remaining portion of the ABC order, Yellow is using: A. an arrival price trading strategy. B. a TWAP participation strategy. C. a VWAP participation strategy. Robert Harding is a...
-
Given the parameters for the benchmark given by Harding, Yellow should recommend a benchmark that is based on the: A. arrival price. B. time-weighted average price. C. volume-weighted average price....
Study smarter with the SolutionInn App