Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Download and explore the code using Visual Studio 2 0 1 9 or 2 0 2 2 . Add a screenshot of the code from
Download and explore the code using Visual Studio or Add a screenshot of the
code from Visual Studio and include it in the report.using System;
namespace TigerSoccerClub
class Program
public Programint players, string name, string registration, string jersey, double price
Players players;
Name name;
Registration registration;
Jersey jersey;
Price price;
public int Players get; set;
public string Name get; set;
public string Registration get; set;
public string Jersey get; set;
public double Price get; set;
static void Mainstring args
int i ;
double total ;
int jerseyamt ;
String Name ;
String Registration ;
String Jersey ;
int initalamtkids ;
int initalamtadult ;
these lines of codes are for aligning items to center and contains heading portion
string s Welcome to TigerSoccerClub;
Console.SetCursorPositionConsoleWindowWidth sLength Console.CursorTop;
Console.WriteLines;
Console.WriteEnter the number of players per registrations: ;
int Players Convert.ToIntConsoleReadLine;
ifPlayers Players
Console.WriteLineInvalid number, Please enter the registration number betweeen to ;
else
ifPlayers
Console.WriteEnter name: ;
Name Console.ReadLine;
Console.WriteRegistration type: ;
Registration Console.ReadLine;
Console.WriteEnter YesNo to indicate wheather you want jersey: ;
Jersey Console.ReadLine;
if Registration "Kids" && Jersey "Yes"
total initalamtkids jerseyamt;
Console.WriteTotal price from Name is: total;
Console.WriteLine
;
else if Registration "Kids" && Jersey No
total initalamtkids;
Console.WriteTotal price from Name is: total;
Console.WriteLine
;
else if Registration "Adult" && Jersey "Yes"
total initalamtadult jerseyamt;
Console.WriteTotal price from Name is: total;
Console.WriteLine
;
else
total initalamtadult;
Console.WriteTotal price from Name is: total;
Console.WriteLine
;
string s "Summary of Registrations";
Console.SetCursorPositionConsoleWindowWidth sLength Console.CursorTop;
Console.WriteLines;
Console.WriteLine;
Console.WriteLineName Type Jersey Total ;
Console.WriteLine
;
for int j ; j Players; j
Console.WriteLineName Registration Jersey total;
else
for i ; i Players; i
Console.WriteEnter name: ;
Name Console.ReadLine;
Console.WriteRegistration type: ;
Registration Console.ReadLine;
Console.WriteEnter YesNo to indicate wheather you want jersey: ;
Jersey Console.ReadLine;
if Registration "Kids" && Jersey "Yes"
double test initalamtkids jerseyamt;
double testtest ;
total test test;
Console.WriteTotal price from Name is: total;
Console.WriteLine
;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started