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();}}}
-
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!
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?
hotmail hacking viagra cost of cialis vs viagra
meilleur site viagra age limit viagra
viagra espagne pharmacie falithrom und viagra
viagra tГјrkiye how i take viagra
viagra tampa nils viagra
viagra men wiki viagra przedЕ‚uЕјa stosunek
viagra vendas online potencializar o efeito do viagra
viagra natural de chile will viagra affect sperm
viagra natural onde comprar viagra experiment video
viagra cialis together taking viagra suppliers india
viagra without a prescription
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.