We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

CS411 Assignment No 01 Spring 2020 Solution & Discussion


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 1130

Replies to This Discussion

CS411 Visual Programming Assignment No. 1 Solution

CS411 Visual Programming Assignment No. 1 Solution
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 100
• 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.

#CS411
#CS411VisualProgramming
#CS411Assignment
#CS411Solution
#VisualProgramming
#CSharp
#ConsoleApplication
#VU
#VirtualUniversityofPakistan
#AssignmentSolution
#VUAssignment
#VisualStudio

CS411 Assignment 1 solution spring 2020 

perfect easy in few Minutes 

CS411 assignment 1 Solution 2020 | Spring 2020 | Visual Programming c#

CS411 Solution assignment 1 Complete Correct Solved Spring 2020 | Visual Programming c#. SOLUTION Assignment No. 1 (CS411 – Visual Programming ) Spring 2020 cs411 assignment 1 solution 2020,cs411 assignment solution 2020,cs411 assignment 1 solution Spring 2020,cs411 assignment no 1 solution 2020,cs411 assignment no 1 solution Spring 2020,cs411 1st assignment solution,cs411 1st assignment solution 2020,cs411 1st assignment solution Spring 2020, visual programming assignment 1 solution • CS411 Assignment 1 Complete Solution Spring 2020,CS411 Assignment 1 Complete Solution,CS411 Assignment 1,CS411,CS411 assignment 1 solution,CS411 assignment spring 2020,CS411 assignment solution spring 2020,CS411 assignment, assignment 1 CS411 solution, solution CS411 assignment 1,

CS411 Assignment 1 IDEA SOL SPRING 2020



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mc180200940
{
class Bowler
{
public virtual void speed();
Console.WriteLien("unknow bowler");
Console.Readkey();
}
}
class Spinner : Bowler
public override void speed()
{
Console.WriteLien("spinner pace bolwer");
Console.Readkey();
}
class Mediam : Bowler
public override void speed()
{
Console.WriteLien("Mediam pace bolwer");
Console.Readkey();
class Fast : Bowler
public override void speed()
{
Console.WriteLien("Fast pace bolwer");
Console.Readkey();

class program
static void Main(string[] args)
{
Bowler bowler1;
Console.Write("Enter last two digit your id");
String id = Console.ReadLine();
int Idd;
if(int.Tryparse(id, out idd))
{
if(Idd > 00 && idd <= 33)
{
bowler1 =new Spinner();
bowler1.speed();
}
else if (Idd > 33 && idd <= 66)
{
{
bowler1 =new Mediam();
bowler1.speed();
{
else if (Idd > 66 && idd <= 100)
{
{
bowler1 =new Fast();
bowler1.speed();
{
else
{
bowler1 = new bowler();
bowler1.speed();
}
}
else
}
Console.WriteLine("you have enter invalid value");
Console.ReadKey();
}
}
}
}
}
}

CS411_Assignment_No_01_Solution_Spring_2020

Download the file, Click on the below link

CS411_Assignment_No_01_Solution_Spring_2020

CS411 Assignment 1 IDEA SOL SPRING 2020

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace mc180200940
{
class Bowler
{
public virtual void speed();
Console.WriteLien("unknow bowler");
Console.Readkey();
}
}
class Spinner : Bowler
public override void speed()
{
Console.WriteLien("spinner pace bolwer");
Console.Readkey();
}
class Mediam : Bowler
public override void speed()
{
Console.WriteLien("Mediam pace bolwer");
Console.Readkey();
class Fast : Bowler
public override void speed()
{
Console.WriteLien("Fast pace bolwer");
Console.Readkey();

class program
static void Main(string[] args)
{
Bowler bowler1;
Console.Write("Enter last two digit your id");
String id = Console.ReadLine();
int Idd;
if(int.Tryparse(id, out idd))
{
if(Idd > 00 && idd <= 33)
{
bowler1 =new Spinner();
bowler1.speed();
}
else if (Idd > 33 && idd <= 66)
{
{
bowler1 =new Mediam();
bowler1.speed();
{
else if (Idd > 66 && idd <= 100)
{
{
bowler1 =new Fast();
bowler1.speed();
{
else
{
bowler1 = new bowler();
bowler1.speed();
}
}
else
}
Console.WriteLine("you have enter invalid value");
Console.ReadKey();
}
}
}
}
}
}

CS411 Visual Programming Assignment 1 Solution & Discussion Spring 2020


CS411 Solution Idea:

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;




namespace mc180200940

{

class Bowler

{

public virtual void speed();

Console.WriteLien("unknow bowler");

Console.Readkey();

}

}

class Spinner : Bowler

public override void speed()

{

Console.WriteLien("spinner pace bolwer");

Console.Readkey();

}

class Mediam : Bowler

public override void speed()

{

Console.WriteLien("Mediam pace bolwer");

Console.Readkey();

class Fast : Bowler

public override void speed()

{

Console.WriteLien("Fast pace bolwer");

Console.Readkey();




class program

static void Main(string[] args)

{

Bowler bowler1;

Console.Write("Enter last two digit your id");

String id = Console.ReadLine();

int Idd;

if(int.Tryparse(id, out idd))

{

if(Idd > 00 && idd <= 33)

{

bowler1 =new Spinner();

bowler1.speed();

}

else if (Idd > 33 && idd <= 66)

{

{

bowler1 =new Mediam();

bowler1.speed();

{

else if (Idd > 66 && idd <= 100)

{

{

bowler1 =new Fast();

bowler1.speed();

{

else

{

bowler1 = new bowler();

bowler1.speed();

}

}

else

}

Console.WriteLine("you have enter invalid value");

Console.ReadKey();

}

}

}

}

}

}
  • 
    
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    namespace bc160
    {
    class Bowler
    {
    public virtual void speed()
    {
    Console.WriteLine("Only enter last two digit your id");
    }
    }
    class Spinner : Bowler
    {
    public override void speed()
    {
    Console.WriteLine("spinner pace bolwer");
    }
    }
    class Mediam : Bowler
    {
    public override void speed()
    {
    Console.WriteLine("Mediam pace bolwer");
    }
    }
    class Fast : Bowler
    {
    public override void speed()
    {
    Console.WriteLine("Fast pace bolwer");
    }
    }
    class Program
    {
    static void Main(string[] args)
    {
    Bowler b1 = new Bowler();
    enter:
    Console.WriteLine("Enter last two digit your id");
    String num = Console.ReadLine();
    try
    {
    int vuid = Int32.Parse(num);
    if (vuid >= 00 && vuid <= 33)
    {
    b1 = new Spinner();
    b1.speed();
    }
    else if (vuid > 33 && vuid <= 66)
    {
    b1 = new Mediam();
    b1.speed();
    }
    else if (vuid > 66 && vuid <= 100)
    {
    b1 = new Fast();
    b1.speed();
    }
    else
    {
    b1.speed();
    }
    }
    catch (FormatException)
    {
    Console.WriteLine("Enter an integer number only", num);
    goto enter;
    }
    Console.ReadKey();
    }
    }
    }
    
    

RSS

Looking For Something? Search Below

Latest Activity

Muhammad Naveed posted a status
"CS101 Assignment 03 Solutions Fall 2020"
21 minutes ago
Laila kabeer posted discussions
32 minutes ago
Profile IconHayaa Cheema, Huda Rajpoot and Saadia joined Virtual University of Pakistan
9 hours ago
Zoha n liked Ammara Sabir's discussion !!!!!Poetry@@@
1 hour ago
Zoha n replied to Zoha n's discussion Koi suny ga to kia kahy gaa..???
1 hour ago
Asad waqas replied to + M.Tariq Malik's discussion CS408 Assignment No 03 Fall 2020 Solution & Discussion Due Date: 30-01-2021 in the group CS408 Human Computer Interaction
2 hours ago
Asad waqas joined + M.Tariq Malik's group
2 hours ago
Asad waqas replied to + M.Tariq Malik's discussion CS202 Assignment No 03 Fall 2020 Solution & Discussion Due Date: 28-01-2021 in the group CS202 Fundamentals of Front End Development
3 hours ago
Asad waqas joined + M.Tariq Malik's group
3 hours ago
Asad waqas replied to + M.Tariq Malik's discussion STA408 Design and Analysis of Experiments Assignment No 02 Fall 2020 Solution / Discussion in the group STA408 Design and Analysis of Experiments
3 hours ago
Asad waqas joined + M.Tariq Malik's group
3 hours ago
Ammara Sabir liked + !! Ήලᵯᵯℹ Ⲥⱨ !! +'s discussion !!!!TRUE LOVE NEVER DIES!!!!
3 hours ago

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.