programming c#

Hello

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

I need someone help me in programming assignment

we work in visual studio c#

I started to write a code but I couldn’t complete it

I attached the assignment

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Exam
http://jrasystems.us/-cit3033/exam/exlsp19cs.php
code that makes the UI functional; refer to the design documents provided below as you do this. Your code is
blank form (form1.cs) with the UI from the starter solution (tip CalcForm.cs). Complete the UI and then the
to be exactly the same as that in the starter solution (to include the same line numbering), except that the
block comment delimiters (” /* ” and ” */ “) should be replaced by line comment delimiters (” // “), and the
ellipses (” …”) are to be replaced by the correct code. This is therefore essentially a “fill-in-the-blanks”
exercise. Note that, if you refer also to the example executable file (tipCalculator.exe) that is also available in
del
fi
backs
the bin/debug folder of the starter solution you should be able to see how this application is to function.
As much as possible, use good coding practices; for example, follow the naming guidelines presented in
class. In addition, you are to use no literal values within your backend code but instead are to define and use
variables as specified in the design documents.
At the very top of your code insert a comment with your name so that the code can be clearly identified as
yours. Then print and turn in a hardcopy the C# backend source code you have written. That code should be
printed in Landscape mode and should include the line numbers.
Structure chart:
Tip Calculator
Initialize()
TipCalcForm_Load()
calcButton_Click()
GetData()
CalculateTipo
ato
TOE chart:
ian
Task
Object
Event
Serve as container for sales processing I/O objects
TipCalcForm
Load
Get and display the bill amount
and service quality
None
amountBox,
service List
calcButton
1. Calculate the tip amount and total bill
2. Cause results to be displayed back to the form labels
Click
result Table
Display the results in tabular fashion
and serve as container for output controls
None
Display the tip amount
tip AmountLabel
None
Display the net sales amount
totalAmountLabel None
1/31/2019, 8:01 A
Scenario:
You have been hired by Flybai-Knight Food Services (FKFood) to assist them in improving the customer
experience. Ultimately this will involve the development of the FKFood App, which will be a multi-platform
application that will allow customers to make reservations at one of FKFood’s many locations, provide for
ordering ahead with a take-out option, accumulate customer loyalty points, and so on. However
, FKFood right
now simply wants to start small and provide their customers with a desktop version of a tip calculator app,
which will ultimately have three versions a standard desktop app, a web app, and a mobile app
developed for Windows devices. The application is simple: the customer enters the bill amount, selects a
service level, and clicks a button. The app then calculates the tip, based upon the service level, and the total
including the tip, after which the total and tip are displayed in separate labels on the interface.
all


General Specifications:
The UI (user interface) and primary container for all other controls in this app is the tipCalcForm, and is to be
processed upon initialization by the tipCalcForm_Load() method. This method should populate a dropdown
list (serviceList), which contains several levels of service, such as “Good”. Those service levels are to be
specified in the array SERVICE_LEVELS, and corresponding tip rates are to be contained in the array
TIP_RATES. Another container control needs to be part of the app, and that is a TableLayoutPanel, named
result Table, which itself is contained by the tipCalcForm and in turn contains the controls needed for
displaying output from the processing. In addition to populating the serviceList, the tipCalcForm_Load()
method will also serve to perform other initialization processes, such as setting the visibility property for the
resultTable.
The GetData() method serves to read the data (bill amount and service level) provided by the end user. Within
that method, the TryParse() method is to be used for assigning the bill amount from the interface to the
variable decBillAmount, and the return value for the TryParse() method is to be assigned to the variable
blnAmountOK. In addition, the variable bln TipOK is to be assigned a value according to whether a valid
service quality has been selected. If valid data have been provided by the end user, the method determines
the tip rate corresponding to the selected service level and assigns that rate to the variable decTipRate.
The Calculate Tip() method is to use the values for decTipRate and decBillAmount and calculate the value
dec TipAmount, which is to be returned to the calling method (calcButton_Click()).
The calcButton_Click() method is to call the two independent methods, GetData() and CalculateTip(),
calculate the total bill amount and display the results back to the interface. This method will also cause the
output table to become visible.
Instructions:
Start by studying the general specifications above for this app, then running the example executable file
(tipCalculator.exe, and then thoroughly studying the remainder of the design documents provided (e.g.,
TOE chart, structure chart, pseudocode, etc.). Then read carefully and follow the rest of the instructions
indicated below.
In order to develop this app log into the local computer using your aState student credentials and save your
solution folder in the default location (i.e., the repos folder of the source folder within your own user folder on
the hard drive. When you are finished, zip the entire solution folder and copy it to the MyProjects folder on
your own Google drive, so that it can be checked and also so that you can have it with you and work further
on it as needed in the future.
Begin by downloading and unzipping the starter solution, tipCalculator2019a1_startSoln.zip (available
through the class Google Drive). Then create a new VS solution, tipCalculator2019a1_soln, and replace the
1/31/2019,
http:)
Variables:
• Class scope (global variables and constants)
o SERVICE_LEVELS → string array (Poor, OK, Good, Great)
• TIP_RATES → decimal array (0.05, 0.10, 0.15, 0.20)
o decBillAmount → decimal
o decTipRate → decimal
o ERROR_TITLE → string literal constant (Bad Data!)
o BAD_AMOUNT_MSG string literal constant (Please enter a correct bill amount.)
• BAD_LEVEL_MSG → string literal constant (Please select a valid service level.)
• Procedure scope
o TipCalcForm_Load() method
level string (loop variable)
o calcButton_Click() method
dec TipAmount → decimal
dec Total decimal
o GetData() method
blnAmountOK → Boolean
• bln TipOK → Boolean
i integer (array index)
o Calculate Tip() method
• tip Rate
► decimal
billAmount → decimal
tipAmount → decimal
Pseudocode outline for primary methods:
TipCalcForm_Load()
1. Initialize dropdown list
2. Process through service level array by adding items to dropdown list
3. Set dropdown list to top item
4. Hide results section
calcButton_Click()
1. Declare local variables
2. Call GetData() method to get data from form
3. If valid inputs:
a. Call Calculate Tip() method to calculate tip
b. Calculate total (tipAmount + billAmount)
c. Prepare and assign calculation results to output
d. Unhide results section
GetData()
1. Inputs: none
2. Declare local variables
3. Read and validate data from interface
o Bill amount
o Service quality
4. If valid inputs:
a. Determine tip rate based on selected service level
b. Otherwise, handle error
• Bad service level selection
Bad amount entry
5. Outputs: none
CalculateTip()
1. Inputs: tipRate, billAmount
2. Declare local variables
of 4
http://jr:
Exam
3. Calculate tip amount (tipRate * billAmount)
4. Outputs: tipAmount
Interface design:
– Tip Calculator
x
Bill amount:
Service:
Hotel
Determine Tip and Total
wwww
Tip: label5
900**
X
Total: label 6
mw.w.w.wmmmmm.
max.
CIT 3033 Home
This page last modified January 31, 2019, 8:58 am
Please submit any comments, corrections, etc. about this document

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER