Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
A Stationery supplier “Adwaat Al Maktabiyah” needs a program to display sales as per regions and add the sales
to the file called sales.txt. The files Personal Details.txt and Sales.txt have been provided. You may download
and use them in your program. They are as shown below:
PersonalDetails.txt
Id First name Last Name Region
E111 Alvin Jones East
C121 Blake Kivell Central
C253 Edda Jardine Central
Sales.txt
Rep_Id OrderDate Region Item Units UnitCost
E111 1/6/2020 East Pencil 95 1.99
C121 1/23/2020 Central Binder 50 19.99
C253 2/9/2020 Central Pencil 36 4.99
Note: - Use structures in the coding and declare structure array as public as shown below. The question 7
doesn’t need arrays.
Structure personaldetails
Dim rid As String ' Employee id
Dim fn As String 'First name
Dim ln As String 'Last name
Dim rn As String ' Region he belongs to
End Structure
Structure Regionalsales
Dim id As String 'employee id
Dim od As Date 'Order Date
Dim region As String 'order region
Dim item As String ' product name
Dim unit As Integer ' Quantity of items
Dim unitcost As Double ' price of a unit
End Structure
Public pd(perdet.Count - 1) As personaldetails
Public rs(sales.Count - 1) As Regionalsales
Public reg As String
1. Design the following forms.
a. Add Label with the text “Adwaat AL Maktabiyah”. 3 Mark
i. Dock: Top
ii. Autosize: False
iii. TextAlign: Middle, Center
b. Add a button and button text as “Add New Order”. 1 Mark
c. Add a button and text as “Exit Application”. 1 Mark
d. Add a datagridview and name it dgv1. 1 Mark
e. Add formText as Your Id. 0.5 Mark
f. Save the with the name mainform.vb. 0.5 Mark
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 6 steps with 4 images
Knowledge Booster
Similar questions
- Open the start file EX2019-ChallengeYourself-6-3. The file will be renamed automatically to include your name. If the workbook opens in Protected View, click the Enable Editing button in the Message Bar at the top of the workbook so you can modify the workbook. On the Sales Data worksheet, enter a formula in cell J4 to find the sales associate's region by extracting the first three characters of the sales associate's ID in cell C4. Use cell references where appropriate. Fill the formula down through cell J64. On the Sales Data worksheet, calculate the commission rate and commission paid for each sales associate. Beginning in cell F4, enter a formula using the IFS function to calculate the commission rate based on the following table. Hint: Do not include comma separators in numerical values in formulas. Excel interprets commas as function argument separators.Table EX 6.1 displays calculations for commission rates based on annual sales. IF ANNUAL SALES ARE: THEN THE COMMISSION…arrow_forwardTask 5: Create the GET_CREDIT_LIMIT procedure to obtain the full name and credit limit of the customer whose ID currently is stored in I_CUST_ID. Place these values in the variables I_CUSTOMER_NAME and I_CREDIT_LIMIT, respectively. When the procedure is called it should output the contents of I_CUSTOMER_NAME and I_CREDIT_LIMIT.arrow_forwardTask 4: The InstantRide User Satisfaction team is a core team for InstantRide, and they focus on increasing the customer satisfaction. They want to learn the travel time for each ride in the system. You need to return the USER_ID, and the TRAVEL_TIME column which is calculated using the TIMEDIFF function on the TRAVEL_END_TIME and the TRAVEL_START_TIME.arrow_forward
- E MyS Mura 04- S Visu: Blac 9 Sign N Hom MyS y goog y! Exer SN c.blackboard.com/ultra/courses/_207342_1/cl/outline Completion Your answers are saved automatically. * Question Completion Status: QUESTION 1 Exercise: Create a statement that will make a copy of the vendors table. The name of the copy should be vendors QUESTION 2 Exercise: Create a statement that will delete the vendors archive table you created in the previous exercise. QUESTION 3 Exercise: Create a statement that will add the following row to the vendor_contact table Click Save and Submit to save and submit. Click Save All Answers to save all answers.arrow_forwardGiven the following dataframe examclub, create the statement that would group examclub by Club Use and assign it to club_use. examclub = pd.read_csv("exama.csv") examclub 0 1 2 3 4 5 6 7 8 9 Member Join Date Club Use Pool Tim Berners-Lee Pool Leonard Kleinrock Golf Charles Babbage Golf Konrad Zuse Spa Steve Wozniak Spa Steve Jobs Golf Spa Pool Golf Member Name Member Level Dues Paid Dues Owed Gold 5250 456 Silver 4406 1200 Bronze 8661 300 Silver 7075 100 Bronze 2524 2000 Gold 2890 Bronze 1030 Silver 789 Bronze 1738 Gold 287 1/1/2020 1/2/2020 1/3/2020 2/1/2020 3/2/2020 4/3/2020 1/1/2020 1/2/2020 3/2/2020 4/3/2020 Ada Lovelace John Atanasoff Alan Turing Bill Gates Then use club_use and write the following statements. Display the Pool group. Display the sum of the Dues Paid and Dues Owed by groups. Display the max of the only the Dues Paid by the groups. 2793 7172 6362 5982 7917arrow_forwardCreate an application that connects to the Personnel.mdf database that you created in Programming Problem 1. The application’s form should display the Employee table in a DataGridView control. The form should also have the following controls: • A button that, when clicked, sorts the data in ascending order by hourly pay rate. • A button that, when clicked, sorts the data in descending order by hourly pay rate.arrow_forward
- Estem.org/courses/64525/assignments/9460783?module_item_id=18078917 The following information can help you get started: • Invitation Details: it boils down to when and where o When: Time and date • Where: Address • Invitee List: Name and email • Name: First Name, or First Name and Last Name Email: Email address . Other considerations: After you complete your invitation, answer the following questions: 1. What type of data are time, date, and place? How are they different from the other data types on the invite and guest list? F4 A Additional information worth including: dress code, directions, gifting, how to contact you. . How will you know who is showing up? RSVP? . Is there a theme to your invitation/design? x F5 % F6 F7 DELL F8 F9 ROMNA F10 F11 PrtScrarrow_forwardFile Home Insert Draw Page Layout Formulas Data Review View Help A Share P Comments 14 fe A E G H J K L M Q R 1 Semeste Course NumbelCoure NameCredit Hours Letter Grad Grade Points Directions Create a spreadsheet that correctly calculates your GPA - must use formulas for GPA = full credit. You need to inlcude grades for two semesters. If you do not already have two semesters worth of grades assume this semesters grades and one future semester worth of grades. 2 3 4 To calculate GPA dividing the total amount 5 of grade points earned by the total amount of credit hours attempted. Your grade point 6 7 8 average may range from 0.0 to a 4.0. 9 Grade Points - multiply credit hours of course by the number associated with the 3 letter grade you earned. • A = 4 B = 3 C = 2 5 -7 D = 1 F = 0 1 Wine Sales Cinderella's Grades Your GPA + + 95%arrow_forwardSQL Use the IN operator to list the item ID and description of each item in category FSH or BRD.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY