Your task is to create a book ordering form using VISUAL STUDIOS, with the code and...

60.1K

Verified Solution

Question

Programming

Your task is to create a book ordering form using VISUALSTUDIOS, with the code and screenshots

1. Boxes for first name, last name, address.

2. Radio buttons to select: hard cover, soft cover, ebook.

3. Drop down list to select the book (make up three or four booknames).

4. Radio buttons to select credit card (at least Visa, MasterCard, American Express).

5. Box to enter credit card numbers.

6. The credit card box MUST verify that numbers are enteredonly. It will display error information and make the user enter theinformation agaion.

7. All items will be checked to make sure the user enteredsomething, or selected something. If something is missing an errormessage must be displayed.

Once the user clicks the submit button, the followinghappens:

A total price is determined by looking at the book selected, andthe type of book selected.

If the book is hardback, the price is $50, softback $40, ebook$30.

Add 10% sales tax.

Display the book name, book type, and total cost back to theuser. Also thank them for the order.

Make everything user friendly by including labels, and text toexplain what to do and what to enter into boxes.

Answer & Explanation Solved by verified expert
3.9 Ratings (396 Votes)
1 Open Visual studio2Open new project C Windows Form App netframework3 Add text boxes and labels for firstnamelastname and addressand name the tbxFirstNametbxLastName and tbxAddr4 Add groupbox and add radiobuttons with rBtnHardCoverrBtnSoftCover and rBtnEbook select checked true in singleradio5 Add Combobox with DropDownStyle to Dropdownlist and add booknames in collection items6 Radio buttons for credit card same as cover visamasterand american express select checked true in single radiocode for from csusing Systemusing SystemCollectionsGenericusing SystemComponentModelusing SystemDatausing SystemDrawingusing SystemLinqusing SystemTextusing SystemThreadingTasksusing SystemWindowsFormsnamespace BookOrderFormpublic partial class Form1 Formpublic Form1InitializeComponentprivate void btnSubmitClickobject sender EventArgs eif stringIsNullOrEmpty tbxFirstNameTextTrimMessageBoxShowPlease enter first namereturnif stringIsNullOrEmptytbxLastNameTextTrimMessageBoxShowPlease enter last namereturnif stringIsNullOrEmptytbxAddrTextTrimMessageBoxShowPlease enter addressreturnif stringIsNullOrEmptytbxCardNoTextTrimMessageBoxShowPlease enter card noreturnstring booktype rBtnEbookTextDouble Price 30ifrBtnHardCoverCheckedPrice 50booktype rBtnHardCoverTextelse ifrBtnSoftCoverCheckedPrice 40booktype rBtnSoftCoverTextdouble total Price Price 10 100MessageBoxShowThanks for orderEnvironmentNewLineOrderDetails EnvironmentNewLineBook cbxBookNameText EnvironmentNewLine BookType booktype EnvironmentNewLine Cost totalToString000private void Form1Loadobject sender EventArgs ecbxBookNameSelectedIndex 0private void tbxCardNoKeyPressobject sender KeyPressEventArgseif charIsDigiteKeyChar eKeyChar 8eHandled trueDesignernamespace BookOrderFormpartial class Form1 Required designer variable private SystemComponentModelIContainer components null Clean up any resources being used    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students