Agile Software Development with C# Book II this chapter should not serve as a strict guideline. It is a starting point for communication. You should ask your instructor if you have any questions about...

1 answer below »

Agile Software Development with C# Book II this chapter should not serve as a strict guideline. It is a starting point for communication. You should ask your instructor if you have any questions about the problems.




Treat your instructor as the product owner of your team.


Project One


The Problem: The Tiny College keeps track of its students taking courses.


A student has a student Id, student name, and courses completed or taking them right now.


course has a course Id, course title, and semester offered.


Create a graphical user interface application that can


1) add new students;


2) add new courses;


3) allow for students to enroll in courses;


4) display all students registered for a course;


5) display all courses taken by a student.


When the "Add a Student" button is clicked, a new form (Figure 8.2) opens up that allows the user to enter a student name (the student ID will be automatically generated by the database). Note the use of the StatusStrip control towards the end of the form. The StatusStrip control can be used to send user feedback. For example, if the student is added successfully, the feedback should be, "The student is added to the database.”


After you add a StatusStrip to a form, on the left end of the control, click on the dropdown triangle to see four options: A


StatusLabel


ProgressBar


DropDownButton


SplitButton


6)Select the "StatusLabel”. Go to the properties window. Set its name property to: feedbackToolStrip Status Label. In the code when you need a feedback, say "The student is added to the database", you add the following statement: feedbackToolStripStatusLabel.Text = "The student is added to the database.” –


Add a Student Enter Student Data New Student Name: Close Add Student When the


"Add a Course" button on the Main form is clicked, a new form (Figure 8.3) opens that Figure 8.2 "Add a Student” form 283 allows the user to enter the course data.


Add a Course Enter Course Data Course Title: Semester Offered: Add Course Close b


Figure 8.3 "Add a Course" form When "Display all students" button on the Main form is clicked, A form with all students displayed.


AllStudentsForm studentld student Name 1 Andrea Boyer 2 Caley Cooper Close


Figure 8.4 "All Students" form


When “Display all courses" button on the Main form is clicked, A form with all courses displayed Х AllCourses Form course Name semesterOffere courseld Introduction to Agile Fall 2021 1 Advanced Agile Spring 2022 > Close


Figure 8.5 "All Courses” form.


When "Enroll a Student in a Course" button on the Main form is clicked, a form opens and should be similar to Figure 8.6. When the form loads, all student names should appear in the student combobox and all course titles should appear in the course combobox. The user can select a student and a course. Then click on the Enroll button to add enrollment data to the database.


Enroll a Student In a Course Enrollment Data Select a Student: Select a Course: Close Enroll 0 b-


Figure 8.6 Enroll a student to a course


When "Who Is in a Course” button is clicked, the form will look like Figure 8.7. A textbox will allow the user to enter a course ID, and a Find button will list all students (student ID and student 285 name) in that course in a listbox control on the same form. X Who is in a Course Coune Data Find Course ID: Course Title: All Students Enrolled In This Course: Student List Box Close D


Figure 8.7 List all students who are enrolled in a course


When "What courses a student enrolled in" is clicked, a form that is similar to Figure 8.8 appears. A user can enter a student ID, then click on the Find button. The student name will appear in the label and all course details the student is enrolled in will show in a listbox control. ox What Courses a Student Enrolled Student Data Find Student ID: Student Name: All Courses by This Student: course List Box Close


Figure 8.8 List all courses a student enrolled

Answered 2 days AfterOct 11, 2021

Answer To: Agile Software Development with C# Book II this chapter should not serve as a strict guideline. It...

Swapnil answered on Oct 14 2021
122 Votes
93489/Accumulator.cs
public class SwingAccumulator : JFrame
{
    private JTextField tfInput, tfOutput;
    private int sum = 0;
    public SwingAccumulator()
    {
        Container cp = getContentPane();
        cp.setLayout(new GridLayout(2, 2, 5, 5));
        cp.add(new JLabel("Enter an Integer: "));
        tfInput = new JTextField(10);
        cp.a
dd(tfInput);
        cp.add(new JLabel("The Accumulated Sum is: "));
        tfOutput = new JTextField(10);
        tfOutput.setEditable(false);
        cp.add(tfOutput);
        tfInput.addActionListener(new ActionListenerAnonymousInnerClass(this));
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setTitle("Swing Accumulator");
        setSize(350, 120);
        setVisible(true);
    }
    private class ActionListenerAnonymousInnerClass : ActionListener
    {
        private readonly SwingAccumulator outerInstance;
        public ActionListenerAnonymousInnerClass(SwingAccumulator outerInstance)
        {
            this.outerInstance = outerInstance;
        }
        public override void actionPerformed(ActionEvent evt)
        {
            int numberIn = int.Parse(outerInstance.tfInput.getText());
            outerInstance.sum += numberIn;
            outerInstance.tfInput.setText("");
            outerInstance.tfOutput.setText(outerInstance.sum + "");
        }
    }
    public static void Main(string[] args)
    {
        SwingUtilities.invokeLater(() =>
        {
            new SwingAccumulator();
        });
    }
}
93489/BorderLayout.cs
public class AWTBorderLayoutDemo : Frame
{
    private Button btnNorth, btnSouth, btnCenter, btnEast, btnWest;
    public AWTBorderLayoutDemo()
    {
        setLayout(new BorderLayout(3, 3));
        btnNorth = new Button("NORTH");
        add(btnNorth, BorderLayout.NORTH);
        btnSouth = new Button("SOUTH");
        add(btnSouth, BorderLayout.SOUTH);
        btnCenter = new Button("CENTER");
        add(btnCenter, BorderLayout.CENTER);
        btnEast = new Button("EAST");
        add(btnEast, BorderLayout.EAST);
        btnWest = new Button("WEST");
        add(btnWest, BorderLayout.WEST);
        setTitle("BorderLayout Demo");
        setSize(280, 150);
        setVisible(true);
    }
    public static void Main(string[] args)
    {
        new AWTBorderLayoutDemo();
    }
}
93489/Counter.cs
public class SwingCounter : JFrame
{
    private JTextField tfCount;
    private JButton btnCount;
    private int count = 0;
    public SwingCounter()
    {
        Container cp = getContentPane();
        cp.setLayout(new FlowLayout());
        cp.add(new JLabel("Counter"));
        tfCount = new JTextField("0");
        tfCount.setEditable(false) cp.add(tfCount);
        btnCount = new JButton("Count");
        cp.add(btnCount);
        btnCount.addActionListener(new ActionListenerAnonymousInnerClass(this));
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setTitle("Swing Counter");
        setSize(300, 100);
        setVisible(true);
    }
    private class ActionListenerAnonymousInnerClass : ActionListener
    {
        private readonly SwingCounter outerInstance;
        public ActionListenerAnonymousInnerClass(SwingCounter outerInstance)
        {
            this.outerInstance = outerInstance;
        }
        public override void actionPerformed(ActionEvent evt)
        {
            ++outerInstance.count;
            outerInstance.tfCount.setText(outerInstance.count + "");
        }
    }
    public static void Main(string[] args)
    {
        SwingUtilities.invokeLater(() =>
        {
            new SwingCounter();
        });
    }
}
93489/EventListner.cs
using System;
public class...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here