logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Determine the most appropriate C# controls to use to accomplish the requirements of the program write code to accept input from the user, perform calculations, and convey output to the user.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Travis – Individual Technical Assignment #2

ASSIGNMENT OBJECTIVES

  • To repeat the Objectives of Individual Assignment #1:

    • Observe professional programming style guidelines (e.g., comments, indentation,etc ).

    • Determine the most appropriate C# controls to use to accomplish the requirements of the program

    • Properly declare all necessary constants and variables with appropriate data types and scopes

    • Follow appropriate standardized naming conventions for constants, variables, and controls

    • Write code to accept input from the user, perform calculations, and convey output to the user

    • Format output so that it displays appropriately for the situation involved (e.g., as currency).

  • Utilize appropriate decision structures to branch code execution as required by the program

  • Share event handler code written for one control with other controls

  • Create a custom message box that solicits input from the user and then responds appropriately to the input

  • Take data the user has input into controls on the form and summarize it in a custom message box

BUSINESS SCENARIO

Language Arts Institute (LAI) is an online language training software business that offers self-paced training soft- ware to students enrolled at a local community college who are seeking a foreign language literacy certification. LAI only supplies the training software; the college handles the testing and certificate granting. But, LAI must follow certain rules (e.g., quantity limitations per student per school term) established by the college regarding the sale of the software. Orders from students are taken by phone or in person by clerks at a sales desk in the student union. Currently, the company clerks write the orders down on paper forms. However, the company wishes to auto- mate its order-taking function with a Windows application running on laptop computers. The first step in this process is to develop a prototype of a simple order entry form as described below.

ASSIGNMENT REQUIREMENTS

  • There is to be a picture box control placed at the top of the form that displays a small graphic file of your choos- ing related to languages or training. Then, four group boxes should be used, as described below

  • Term Information – LAI must keep track of the school term in which each purchase is made. This information consists of both a term specification (Fall or Spring only) and a year specification (e.g., 2018). Utilize radio buttons for the term (with Fall being the default), and utilize a combo box for the year, with the list including the years 2019 through 2024. The combo box should not allow any other year entry by the user. When the program begins, the combo box should not display any year until the user selects one from the list

  • Student Information – The Student ID, first name, last name, and email address are to be entered for each student. (The Student ID is actually the student’s Social Security Number and should follow the standard format for that number.) Also, the student’s residence status must be recorded, with options of In-State and Out-Of- State. (The software is priced lower for in-state students – see below). In-State should be the defaultsetting

  • Course Order Information – The software packages are referred to as “courses.” The offerings currently include five courses: Beginning French, Beginning German, Beginning Italian, Beginning Russian, and Beginning Spanish. The charge for the software is $59 per course for in-state students and $109 per course for out-of-state students. There is no sales tax charge for these purchases. The maximum number of courses that a student may purchase in a single order is three. (There are no other restrictions placed on the sale of )

  • Payment Information – Only MasterCard and Visa credit cards are accepted as payment. Use radio buttons for these options. MasterCard should be set as the default selection for credit card type. The 16-digit credit card number and the card expiration date must also be recorded. Use a 00/00/0000 format for the expiration data

  • There are to be three buttons in a row at the bottom of the form labeled: Save, Clear, and Exit (from left to right). There should be an Access Key defined for each of these b Also, there should be an appropriate ToolTip created for each of the buttons. (For this assignment, no other form controls require Access Keys or ToolTips.)

  • A s the user clicks on courses, the program is to automatically update two fields on your form: the total number

of courses purchased on the order and the total price of the order (which will be calculated as the number of courses times the price per course for that student). (Hint: Create a check box control for each course and use the CheckedChanged event handler for the check boxes to run the necessary shared event handler code.)

At program startup, these two fields (total number of courses purchased and total price of the order) should display initial values of 0 and $0.00, respectively. The form should also display the current price per course.

 

  • When the Save button is clicked, the program is not to actually save any data to an external file. Instead, the saving of data will be simulated by displaying the entire contents of the order in a message box. This message box should have appropriate text in its title bar and should include an Information icon. The message box should display the following data, properly labeled, with one data item per line: registration term (term and year), student ID, student name (first and last), email address, residence status, total courses purchased, price per course, total order price, credit card type, card number, and card expiration

EXTRA CREDIT: Also display, after the previous data, the name of each course ordered (one course per line).

  • Do n ot “save” an order for less than one or more than three courses. When the Save button is clicked, if there is no course selected, or more than three courses selected, instead of displaying the message box described above, a message box should display stating that a course order must contain at least one course but no more than three courses. This message box should have appropriate text in its title bar and should include an Exclamation

  • Clicking the Clear button is to return the form to its original state, clearing and resetting all data entry areas and calculated fields, and then sending the focus to the first data entry control on the form. (Hint: A combo box control can have its text area cleared by setting its SelectedIndex property to a value of -1.)

  • Clicking the Exit button is to terminate the program using the Close method. However, when the button is clicked, the program must first prompt the user with a message asking “Are you sure you wish to quit?” The message box is to provide response options of Yes and No. The message box should also have appropriate text in its title bar and should include a Question icon. If the user chooses the Yes button in the message box, the program should close. But, if the user chooses the No button, the program should not close

  • You are to give meaningful names to all controls used on the form, and all constants and variables used in your code. Follow standard C# naming conventions, as described in your textbook

  • Use appropriate labels for your controls to clearly identify them, and use appropriate text in the form’s title bar

  • Use group boxes, as described earlier, to appropriately group the form controls into logical sections

  • The alignment, spacing, and sizing of all controls should be appropriate, neat, and professional in appearance

  • When the program runs, the form should display in the center of the screen

  • The tab order should be set correctly so that focus flows logically through the controls on the form

  • Data that represents currency values should be displayed with the correct currency format

  • Data representing numeric values, including currency values, should be displayed right-aligned in controls, while text values (such as names) should be displayed left-aligned in controls

  • Use comments very liberally throughout your code, for each event handler and each significant block of code

(5/5)
Attachments:

Expert's Answer

894 Times Downloaded

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

894 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

683 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

751 Answers

Hire Me
expert
Husnain SaeedComputer science

774 Answers

Hire Me
expert
Atharva PatilComputer science

677 Answers

Hire Me