Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Programming: Summer/Fall 2018 Priority Registration Schedule Seniors & Juniors ( Some sophomores) Sophomores & Freshmen Please also include which label, button, textbox is used.

C# Programming:

image text in transcribedSummer/Fall 2018 Priority Registration Schedule

Seniors & Juniors ( Some sophomores)

image text in transcribed

Sophomores & Freshmen

image text in transcribed

Please also include which label, button, textbox is used.

Create a Windows Forms GUI application that will determine the earliest time that a continuing UofL undergraduate student (freshman - senior) may register for Spring 2018 courses u (ng ili tEtiity icyjlesirs ik " : sdn .dk222 esil tak eg i li 2 Ekxpr a essahz Summer Fal 2018 Priority Registration Schedule for Conti ung S udents Your form will need to gather the first letter of the user's last name (from a textbox) and the user's credit hours to determing class standing classification. UofL does offer partial credit hour classes, so this value must be stored using one of the floating-point types. Remember, the classification is as follows: 90+ credit hours is a senior, 60+ credit hours is a unior, 30+ credit hours is a sophomore, less than that is a freshman. The Registrar bases the registration decision on the combination class standing and first letter of the student's last name. You may either use a string with one letter or an individual char to store the letter. Using the char data type is actually easier. See p. 74-76 for the char data type. Unlike strings, char variables may be compared directly using <.>, and >= operators. If you want the user to enter their entire last name, the text shows how to easily extract the first letter as a char in the example starting at the bottom of p.227 of the text. Your code should not care whether the user enters their name with a capital first letter or lower case letter. You can assume that the user won't put anything other than a letter as their last name letter, though it is not difficult to test this (see method char.lsLetter, for example). Methods char ToUpper or char.ToLower may also prove useful. When the user submits their credit hours and last name/letter, your application should display the earliest date and time that the student will be allowed to register. You may use labels, textboxes, or a dialog box (as with method MessageBox.Show) to display the earliest registration date and time. For this assignment, I want you to write decision logic using Chapter 4 material only. We will solve this assignment a second time later, using arrays and loops. Think carefully about how you should structure your decision logic. There are many way to make this decision but some approaches are much easier and efficient than others. Think about several alternatives before committing to one. You will probably want to break this problem down into smaller steps and build the application in pieces. For example, designing the layout of the GUl as one step. Adding support for seniors as another step, then adding juniors, etc. As you consider the design of your decision logic, look for opportunities to reduce duplication of code by separating the identification of the earliest date from the identification of the earliest time. Note that there are really only two patterns for the time of registration, one pattern for juniors and seniors and one pattern for freshmen and sophomores. Take advantage of this to reduce the size of the code you must write. Strive for efficiency with your decision logic when testing letter ranges, as wel Don't test both ends of a range if you can avoid it. Create a Windows Forms GUI application that will determine the earliest time that a continuing UofL undergraduate student (freshman - senior) may register for Spring 2018 courses u (ng ili tEtiity icyjlesirs ik " : sdn .dk222 esil tak eg i li 2 Ekxpr a essahz Summer Fal 2018 Priority Registration Schedule for Conti ung S udents Your form will need to gather the first letter of the user's last name (from a textbox) and the user's credit hours to determing class standing classification. UofL does offer partial credit hour classes, so this value must be stored using one of the floating-point types. Remember, the classification is as follows: 90+ credit hours is a senior, 60+ credit hours is a unior, 30+ credit hours is a sophomore, less than that is a freshman. The Registrar bases the registration decision on the combination class standing and first letter of the student's last name. You may either use a string with one letter or an individual char to store the letter. Using the char data type is actually easier. See p. 74-76 for the char data type. Unlike strings, char variables may be compared directly using <.>, and >= operators. If you want the user to enter their entire last name, the text shows how to easily extract the first letter as a char in the example starting at the bottom of p.227 of the text. Your code should not care whether the user enters their name with a capital first letter or lower case letter. You can assume that the user won't put anything other than a letter as their last name letter, though it is not difficult to test this (see method char.lsLetter, for example). Methods char ToUpper or char.ToLower may also prove useful. When the user submits their credit hours and last name/letter, your application should display the earliest date and time that the student will be allowed to register. You may use labels, textboxes, or a dialog box (as with method MessageBox.Show) to display the earliest registration date and time. For this assignment, I want you to write decision logic using Chapter 4 material only. We will solve this assignment a second time later, using arrays and loops. Think carefully about how you should structure your decision logic. There are many way to make this decision but some approaches are much easier and efficient than others. Think about several alternatives before committing to one. You will probably want to break this problem down into smaller steps and build the application in pieces. For example, designing the layout of the GUl as one step. Adding support for seniors as another step, then adding juniors, etc. As you consider the design of your decision logic, look for opportunities to reduce duplication of code by separating the identification of the earliest date from the identification of the earliest time. Note that there are really only two patterns for the time of registration, one pattern for juniors and seniors and one pattern for freshmen and sophomores. Take advantage of this to reduce the size of the code you must write. Strive for efficiency with your decision logic when testing letter ranges, as wel Don't test both ends of a range if you can avoid it

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

Database Systems For Advanced Applications 17th International Conference Dasfaa 2012 Busan South Korea April 2012 Proceedings Part 1 Lncs 7238

Authors: Sang-goo Lee ,Zhiyong Peng ,Xiaofang Zhou ,Yang-Sae Moon ,Rainer Unland ,Jaesoo Yoo

2012 Edition

364229037X, 978-3642290374

More Books

Students also viewed these Databases questions