Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I can't figure this out. Can someone help. Scenario: Overview Real-world programmers are required to edit existing code, work from software requirement documentation, and code

I can't figure this out. Can someone help.

Scenario:

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
Overview Real-world programmers are required to edit existing code, work from software requirement documentation, and code from scratch. This final assessment is designed to incorporate all three of those functions. For your nal assessment, you will be given a software requirements list for a final program. You will also be given partially completed source code. You will review the provided source code and fix any errors, and then complete the program based on the software requirements list. This assessment addresses the following course outcomes: 0 Implement variables in Cit that are accurate according to the differences in data types o Create Cit code that accurately performs basic math operations In Incorporate logical operators and Boolean logic in Ctt to ensure proper support of code components In Implement functional control structures using Ctt to provide flow control in software projects :- Implement appropriate classes and methods in Ctt for creating functionality in software projects This project is divided into two parts and has three milestone assignments to scaffold learning and ensure quality nal submissions. Part II has one milestone, which will be submitted in Module Six, with the nal submission in Module Seven. The milestone assignments are not submitted as part of the final project in their entirety, but the coding techniques, code snippets, and Ctt classes that you build in these milestones are used in the final project. The milestone assignments build code base that is used to complete the final project. You will not be able to complete the final project unless you complete these formative milestones and receive feedback from the instructor. Prompt Overview: The attached zip file {called WPFRegisterStudent.zi pl contains the entire Visual Studio project for a WPF program that does compile and does run, but does not produce the required results. This WPF program is the graphical user interface [GUI] counterpart to the ConsoleRegisterStudent program you completed in Final Project: Part I. The program enables students to register for courses in a term of study. Students select from a menu of courses for which they wish to register. The assumptions used by the program are: In Each course carries three credit hours. In The program terminates onlyr when the student requires it. The program must follow these registration business rules: In No registration more than once for the same course. a No registration for more than nine credit hours {e.g., no more than three courses}. The program validates the user menu selection, and if valid, registers the student for the selected course. Otherwise, the program outputs an error message. The program then outputs the current list of registered classes. Additionally, the program should output the cumulative total credit hours the student has registered for thus far. You have been hired to complete the source code of this program by creating additional Cll code in the button_C|ick{]I event hander according to these requirements: I Validate the user selection against the above business rules. I Output an error or a registration confirmation message based on your validation of user selection. I Update the total credit hours textbox if a registration is conrmed for a selected course. Once completed, the program output should look like this video which provides an example of the outcome for a properly functioning program. [Rather than viewing a still image, the video demonstrates the interaction between the application and the user.) For this assignment, you lwill submit one deliverable: I. Project Files: a ZIP file containing: a. All of your visual Studio project files that it can be loaded and run on a separate machine b. A copy of your source code c. A screenshot of your output Use the following naming convention for your Word doc: Losmomejrstnome_helloyoumome.doc Given the provided source code and software requirements list. accomplish the following: Part II: II. Create additional {source} code. A. Add required user interface components. 1. 2. 3. 4. Code Variables: Code the required user interface lUI] variables ensuring that variables are defined with proper conventions. Boolean Logic: Implement Boolean statements using proper Boolean logic. Map User Input: Collect appropriate user input and map it properly to branching operations. Create Ul Code: Create user interface {UIJ code as required. B. Implement the required mathematical component 1. 2. 3. Program Math Variables: Code the required math variables ensuring that variables are dened with proper conventions. Program Math Operations: Program the required math operations with no syntax or computation errors. Program Math Methods: Create the methodls] required to support the mathematical component. C. Implement the library component as described in the software requirements. 1. .5\" Create Variables: Create additional variables and associated Cit code to support the software requirements, ensuring the variables are dened with proper conventions. Add Branching: Add additional branching code to support flow control. Program Library Component: Program the required math operations related to the library component. Incorporate Logic Operators: Incorporate the required logic operators to support the library component. Milestones Final Project Part II, Mile stone One Coding Activity: Create Classes for Final Project In Module Six. you will be provided with functioning, but incomplete, code and specic guidelines for creating a class to develop the intended functionality of the code. See the Module Six Coding Activity CreateClasses Instructions document for more information. This milestone is graded with the Coding Activity Rubric. Final Project Part II Submission: WPFRegisterStudent In Module Seven, you will submit the second part of your final project. For this assignment, you will write new code and complete Section II of the critical elements above. This submission is graded Iwith the Final Project Part II Rubric {below}. WPFRegisterStudent binRegister_Click(object sender, EventArgs e) Busing System; using System. Collections . Generic; ng System. ComponentModel; using System. Data; using System. Drawing; using System . Linq; ng System. using System . Threading . Tasks; ng System. Lusing System . Windows . Forms; 11 Enamespace WPFRegisterStudent 13 1 reference 14 public partial class Forml : Form 15 16 public Form1() InitializeComponent() ; int totalCreditHours = int courseCreditHours = 3; bool courseSelection = false; string selectedCourse = ""; 1 reference private void Reset() totalCreditHours = 0; txtTotalCreditHours . Text = totalCreditHours. ToString(); courseSelection = false; selectedCourse = ""; txtSelectedCourse . Text = selectedCourse; 1 reference private void UpdateTotalCreditHours() totalCreditHours = totalCreditHours + courseCreditHours; txtTotalCreditHours . Text = totalCreditHours . ToString(); referen private bool ValidateSelection() if (selectedCourse == IstCourses . SelectedItem. ToString()) MessageBox . Show("This course has already been selected. "); return false; if (totalCreditHours + courseCreditHours > 9) MessageBox . Show("You cannot register for more than 9 credit hours. ") ; return false; return true;WPFRegisterStudent WPFRegisterStudent.Form1 ValidateSelection() references private void btnRegister_Click(object sender, EventArgs e) if (IstCourses . SelectedIndex == -1) MessageBox . Show("Please select a course"); return; courseSelection = ValidateSelection() ; if (courseSelection) selectedCourse = IstCourses . SelectedItem . ToString(); txtSelectedCourse . Text = selectedCourse; UpdateTotalCreditHours(); MessageBox . Show("Registration successful!"); references private void btnReset_Click(object sender, EventArgs e) Reset(); 100% - X 10 AO T 4 | 8 Ln: 49 Ch: 13 SPC C Output Show output from: Debug "WPFRegisterStudent . exe' (CLR v4. 0.30319: WPFRegisterStudent. exe): Loaded .C: \\WINDOWS\\Microsoft. Net\\assembly\\GAC_MSIL\\System. ServiceModel. Internals\\v4.0_4.0.0.0_31bf3856ad364e35\\System. ServiceModel. Internals.dll' . Skipped loading symbols. Module is optimized and the debugger option ' Just My Code' is enabled. "WPFRegisterStudent . exe' (CLR v4. 0. 30319: WPFRegisterStudent . exe) : : Loaded .C: \\WINDOWS\\Microsoft. Net \\assembly\\GAC_MSIL\\UIAutomationTypes\\v4.0_4.0.0.0_31bf3856ad364e35\\UIAutomationTypes. dll' . Skipped loading symbols. Module is optimized and the debugger option . Just My C "WPFRegisterStudent . exe' (CLR v4. 0. 30319: WPFRegisterStudent. exe) : Lo 'C: \\WINDOWS\\Microsoft. Net \\assembly\\GAC_MSIL\\UIAutomationProvider\\v4.0_4.0.0.0_31bf3856ad364e35\\UIAutomationProvider .dll' . Skipped loading symbols. Module is optimized and the debugger o "Just My Code' is enabled. 'WPFRegisterStudent . exe' (CLR v4. 0. 30319: WPF ): Loaded 'C: \\WINDOWS\\Microsoft. Net \\assembly\\GAC_MSIL \\Access ility\\v4.0_4.0.0.0_be3f5f7fild50a3a\\Accessibility .dll". debugger option " Just My Code' is enabled. The program tudent . exe : Program Trace' has exited with code @ (exe) . The program . [25620] WPFR FRegisterStudent . exe' has exited with code @ (ex0)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions