Question
Write a program in Visual Studio C# windows form How it works The user selects a book from the combo box, and the application displays
Write a program in Visual Studio C# windows form
How it works
The user selects a book from the combo box, and the application displays the unit price, sales units, and sales dollars for that book. It also calculates and displays the average price for the book.
What do you need to have
This application uses separate arrays (up to 4 arrays) that are used to store the books info, unit price, sales units, and sales dollars for each book as follows:
Book ID | Index | Unit price | Unit sales | Dollar sales |
CICS | 0 | 54.00 | 1,306 | 42,779 |
COBOL | 1 | 62.50 | 866 | 32,745 |
Java 2 | 2 | 49.50 | 2,517 | 74,741 |
JCL | 3 | 62.50 | 1,450 | 52,913 |
VB.NET | 4 | 49.50 | 462 | 18,320 |
When this application starts, it loads the sorted list with the book IDs and indexes, and it loads the combo box with the book IDs.
When the user selects a book from the combo box, this application uses the value of the selected item to get the value of the associated item in the sorted list. Then, it uses that value to retrieve and display the information for the selected book.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started