The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 6 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
This is a C# coding project that I am having trouble with. Attached is a zipped file that contains the skeleton of this program.
Â
This project is separated into two assignments, so there will be two separate submissions, CS12a and CS12b.Â
Â
In Part 1 (CS12a) of the assignment students will code array declarations, load parallel arrays, look up array values, and display the content of the arrays.Â
Â
In Part 2 (CS12b) of the assigment students will sort and search the parallel arrays.Â
Â
Customer information (id, name, discount code) is stored in a data file and will be loaded into three parallel arrays. The discount code will then be looked up in a discount code array to get the discount rate. The appropriate discount rate should then be loaded into the 4th parallel array. The four parallel arrays should be able to hold up to 10 customers. The values in the four parallel arrays will be displayed in list boxes so that manipulation of the data can be displayed. Use two constant arrays to store the discount codes and discount rates.Â
Â
Additional Notes:
The data for the constant arrays, Discount Code and Discount Rate, are as follows: Discount
Code Rate
A 0.03 Administrators
F 0.05 Faculty
S 0.10 Student
X 0.00 No Discount
The actual data is shown below.
3030
Johnson
F
1010
Smith
S
4040
Lopez
A
6060
Sailor
X
2020
Davis
F
5050
Jones
S
Â
 ----------- He-----------llo----------- Si-----------r/M-----------ada-----------m ----------- ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------