Visual Programming (CS411)
Assignment # 1 (GRADED)
Total marks = 20                                                                                 Due Date = 1st June 2020
Please carefully read the following instructions before attempting the assignment.
1)      First of all listen to the video lectures. Lecture No.1 to Lecture No.7 is included.
2)      After that consult handouts and recommended books to clarify your concepts.

3)      You are supposed to submit your complete solution project as a single file (i. e. zip or RAR). Any other formats like scan images, PDF, bmp, docx etc. will not be accepted.
4)      It should be clear that your assignment would not get any credit if:
·         The assignment is submitted after due date.
·         The submitted assignment does not open or file is corrupt.
·         The assignment is copied. Note that strict action would be taken if the submitted assignment is copied from any other student. Both students will be punished equally.

Important Note:
Assignment comprises of 20 Marks. Note that no assignment will be accepted after due date via email in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.). Hence, refrain from uploading assignment in the last hour of the deadline and try to upload Solutions at least 02 days before the deadline to avoid any inconvenience.

Problem Statement:
You are required to create a C# application Console using Visual Studio with the following functional requirements:
Create 4 classes:

1.      Bowler                        2.Spinner                     3.Medium                    4.Fast

  • Each class will have a function named “speed” which will output speed as specified by class name.

  • You will program this as follows
  • You will take as an input the last two digit of your VUID. For example your ID is BC123456789 so you take here “89” as input and program will decide which range it belongs to i.e. Fast, Medium, Spinner
  • For this you create bowler type object and later on initialize it with spinner, medium and fast bowler as per below provided ranges.
  • Spinner pace bowler has range of 00 to 33
  • Medium pace bowler has range of 34 to 66
  • Fast pace bowler has range of 67 to 10
  • If bowler pace is not in the specified range then the object type must be bowler.
  • Further, if any user tries to enter alphabetical value, it should through Exception and let the user to enter a new numeric value. 

[CODE FILE##download##]

Note: Program must show your own VUID usage.

Post a Comment

Don't Forget To Join My FB Group VU Vicky

Previous Post Next Post