2173 Salk Avenue, Suite 250 Carlsbad, CA

support@assignmentprep.info

I’m working on a c# project and need a sample draft to help me understand better

May 30, 2021
Christopher R. Teeple

I’m working on a c# project and need a sample draft to help me understand better.ASSIGNMENT OBJECTIVES

•Use Visual C# 2017to create a project. (***See the next page for the correct project name to use. ***)

•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).

BUSINESS SCENARIOMotorway Motel is a privately-owned motel in West Florida that has been in the Sorrell family for two generations. The motel ownership and staff prides itself on the personal attention given to each of the motel’s guests. This special care, along with the clean and well-maintained accommodations, has resulted in a very successful business, even when competing against the large chains that dominate much of the motel business.

Desk clerks at the motel currently handle the billing procedure when a guest checks out with paper forms and a calculator. Bob Sorrell, principal owner of the motel, is interested in having this check-out billing procedure automated with a computer program. He has asked you to design the first prototype of a guest check-out program to be used by his desk clerks.ASSIGNMENT REQUIREMENTS

•At the top of the project form should be a PictureBoxcontrol that displays an image related to motels. (Search the Web for an appropriate motel image file toimport into your project for use in the PictureBox.)

•Beside, or below, the PictureBoxshould be a Label control used to display the text “Motorway Motel” (without the quotation marks). This text should display in a large font size (e.g., greater than 20 point size). The fore-ground and background colors of this label must be changed from the default colors to other colors of your choosing. The label should also include a border.

•Directly below this PictureBox andLabel is to be a control into which the user can enter the date ( in 00/00/0000 format) on which the guest is checking out of themotel. (All input and output controls must be properly labeled.)

•Next, four groups of controls (described directly below) should be set apart by the use of four GroupBox controls.

•Guest Information -Two controls must be provided in which the guest’s first name and last name can be entered.

•Room Information -A control must be provided in which the clerk will enter the guest’s room number which is always exactly 3 digits in length (e.g., 205). Also provided must be controls to hold the number of nights theguest has stayed at the motel as well as the nightly dollar rate charged for the room.

•Additional Charges -Here, three controls must be provided into which the clerk can enter any optional charges which are separated into three amounts: mini bar charges,telephone charges, and miscellaneous charges.

•Billing Summary -Here are five output controls that display the results of the calculations described below.

•All calculations are to be initiated by the user clicking a Total button. When this button is clicked, the program is to calculate five values that are displayed in a column in the Billing Summary area:

1) room charges (the length of the stay in nights times the nightly room rate),

2) additional charges (the sum of the three optional charges described above),

3) subtotal (the sum of the room charges and the additional charges),

4) tax amount (the subtotal times the tax rate, which is currently 7%), and

5) total charges (the sum of the subtotal plus the tax). Separate the total charges value from the other values above it with a short horizontal line. (Hint: See Visual C# Lab II.) Also, when the Total button is clicked, the focusshould be sent to the Clear button (described below).

•Your program code should utilize a Try-Catchstatement so that the programwill not crash if the user enters invalid data into any of the input controls. Instead, an appropriate error message should display if an error occurs. (Hint: Study the solution code for Programming Problem 3-14to see how to allow null(blank) values to exist in one or more of the data input controls (e.g., the additional charges) without causing an error to occur.)

•There are to be four buttons in a row at the bottom of the form which initiate actions: Total, Clear, Help, and Exit (from left to right). There should be an Access Keydefined for each of these four buttonsDUE DATE: 6/2/21

•The Clear button is to be used to clear the form controls and to return the form to its original state. When this button is clicked, alldataentry boxes should be cleared as well as the controls displaying calculated data. Also, when this button is clicked, the focusshould be sent to the first data entry control on the form.

•The Help button is to be used to display a message boxtothe user containing basic instructions for using the program. (Although this need not be elaborate, it should adequately cover all the steps required to use the form.)

•The Exit button is to be used to terminate the program. (Use the Closemethod to accomplish this.)

•You should design your program code to be flexible –write your code so that likely future changes (e.g., tax rate changes) can be accommodated easily by yourself or another programmer. (Hint: Remember what a constantis.)

•You are to give meaningful namesto all form controlsused in your program and all constants and variables used in your code. Follow the standard C# naming conventionsdescribed in class and followed in your textbook.

•Use appropriate labels to clearly identify all input and output controls, and include a brief meaningful form description in the form’s title bar.

•The alignment, spacing, and sizingof all controls should be appropriate, neat, and professionalin appearance.

•Text displayed on the form must exhibit correct spelling, grammar, punctuation, and consistency of style.

•When the program runs, the form should display in the centerof the screen.

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

•The Billing Summary out data (five currency values) should be displayed with the correct currency format.

•Data representing numeric values, including currency values, should be displayed right-alignedin controls, while text values (values not used in calculations, such as names) should be displayed left-alignedin controls.

•You should use comments very liberallythroughout your program. Explanatory comments for each event handler as well as for each significant block of code are necessary.

•There must be aninitial commentin your program’s code, before all other code, similar to this (using your own name and project name, of course):

// Programmer: John Doe(Use your own name and project name, of course.)// Project: Doe_1// Due Date: 06/02/2021// Description: Individual Assignment #1

Requirements: help me with writing the code

Struggling With a Similar Paper? Get Reliable Help Now.

Delivered on time. Plagiarism-free. Good Grades.

What is this?

It’s a homework service designed by a team of 23 writers based in Carlsbad, CA with one specific goal – to help students just like you complete their assignments on time and get good grades!

Why do you do it?

Because getting a degree is hard these days! With many students being forced to juggle between demanding careers, family life and a rigorous academic schedule. Having a helping hand from time to time goes a long way in making sure you get to the finish line with your sanity intact!

How does it work?

You have an assignment you need help with. Instead of struggling on this alone, you give us your assignment instructions, we select a team of 2 writers to work on your paper, after it’s done we send it to you via email.

What kind of writer will work on my paper?

Our support team will assign your paper to a team of 2 writers with a background in your degree – For example, if you have a nursing paper we will select a team with a nursing background. The main writer will handle the research and writing part while the second writer will proof the paper for grammar, formatting & referencing mistakes if any.

Our team is comprised of native English speakers working exclusively from the United States. 

Will the paper be original?

Yes! It will be just as if you wrote the paper yourself! Completely original, written from your scratch following your specific instructions.

Is it free?

No, it’s a paid service. You pay for someone to work on your assignment for you.

Is it legit? Can I trust you?

Completely legit, backed by an iron-clad money back guarantee. We’ve been doing this since 2007 – helping students like you get through college.

Will you deliver it on time?

Absolutely! We understand you have a really tight deadline and you need this delivered a few hours before your deadline so you can look at it before turning it in.

Can you get me a good grade? It’s my final project and I need a good grade.

Yes! We only pick projects where we are sure we’ll deliver good grades.

What do you need to get started on my paper?

* The full assignment instructions as they appear on your school account.

* If a Grading Rubric is present, make sure to attach it.

* Include any special announcements or emails you might have gotten from your Professor pertaining to this assignment.

* Any templates or additional files required to complete the assignment.

How do I place an order?

You can do so through our custom order page here or you can talk to our live chat team and they’ll guide you on how to do this.

How will I receive my paper?

We will send it to your email. Please make sure to provide us with your best email – we’ll be using this to communicate to you throughout the whole process.

Getting Your Paper Today is as Simple as ABC

No more missed deadlines! No more late points deductions!

}

You give us your assignments instructions via email or through our order page.

Our support team selects a qualified writing team of 2 writers for you.

l

In under 5 minutes after you place your order, research & writing begins.

Complete paper is delivered to your email before your deadline is up.

Want A Good Grade?

Get a professional writer who has worked on a similar assignment to do this paper for you