CS411 Visual Programming Assignment 1 Solution 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 1 IDEA SOL SPRING 2020  

  • 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();
    }
    }
    }
    
    

By admin

0 0 votes
Article Rating
Subscribe
Notify of
guest
14 Comments
Inline Feedbacks
View all comments
Herta Brafford
3 years ago

You are so cool! I do not believe I have read through a single thing like that before. So great to find another person with a few genuine thoughts on this subject matter. Really.. thank you for starting this up. This site is one thing that is required on the web, someone with a bit of originality!

Rafaela
3 years ago

Thanks for the good writeup. It in truth used to be a leisure account it.
Look complex to far brought agreeable from you! By the way,
how can we communicate?

Cntfdyelo
2 years ago

hotmail hacking viagra cost of cialis vs viagra

HtbnThicy
2 years ago

meilleur site viagra age limit viagra

Fthtcaupt
2 years ago

viagra espagne pharmacie falithrom und viagra

DnyuslolO
2 years ago

viagra tГјrkiye how i take viagra

SnukKent
2 years ago

viagra tampa nils viagra

HtbnThicy
2 years ago
DnrvIllug
2 years ago

viagra vendas online potencializar o efeito do viagra

Anmkretly
2 years ago

viagra natural de chile will viagra affect sperm

Fthtcaupt
2 years ago

viagra natural onde comprar viagra experiment video

Cntfdyelo
2 years ago

viagra cialis together taking viagra suppliers india

MonteHap
1 year ago

viagra without a prescription

Anm"al dig f"or att fa 100 USDT
Anm"al dig f"or att fa 100 USDT
3 days ago

Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

14
0
Would love your thoughts, please comment.x
()
x