Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

• • • •
1.
2.
Pete is the Chief Executive Officer (CEO) of FlyHigh Airlines. Over the years, the organization has expanded its operations to several countries around the world. This has led to a massive growth in the number of day-to-day transactions that the organization needs to manage, such as ticket booking, flight planning, and aircraft maintenance.
However, the existing software that the organization uses, to manage its operations, is incapable of scaling up to the increased operational loads. In addition, the software does not have any provision for the management of new facilities that the organization has introduced for its passengers, such as booking of e-tickets. This is hampering the efficiency of the organization.
Therefore, Pete decides to revamp the existing software to enable it to: Scale up to the increased operational needs of the organization. Support new features such as booking of e-tickets. Pete contacts SoftSols Inc., a software development organization, to revamp the software. T



As part of her business activities, Sharon has created a large number of files and folders.
Whenever she needs to view the details of the files stored in a folder, Sharon browses to the folder
using Windows Explorer. However, she finds it cumbersome to browse to each individual folder to
view the desired details. Therefore, she asks Hayley to modify the application to accept the name
of a folder and display the following details of the files located in the folder:
File name
File size
File creation date
Write the code that Hayley should write to create the desired file information viewer application.
Which class of the .NET Framework should Hayley use to enable Sharon to view the file extension of the stock details file? Describe any four properties of the selected class.
Which features of C# will allow SoftSols Inc. to reuse the existing application code?
Define an interface. Briefly describe the benefits of using interfaces.
BS Bank Inc wants to add some additional features in the application. The company asks FIT
technologies for the following additions: [15 Marks]
? BS Bank Inc. needs to add modules to provide the following services:
a. Online share and mutual funds trading
b. General insurance for health, car, and travel [10 Marks]
BS Bank Inc. should be able to provide other services like bill payments, mobile recharge. [5
Marks] [Use static variables and static function to implement this.]
Reuse the functions of the bookTickets class in a new class, named bookETicket, to add the
feature of e-ticket booking.
Create a new class named viewMaintenance that allows the maintenance personnel of FlyHigh
Airlines to view the maintenance details of aircrafts.
In the written examination conducted by WebSoft Solutions Pvt. Ltd., candidates are given certain
advanced C# codes. They are asked to find the errors in the code (if any) and predict the output of
the code. You are one of the candidates appearing at the interview. Optimize the code, find out the
errors (if any), and predict the output of the following code snippet: [10 Marks]
using System;
class Student
{
private string name = "Marcus Trott";
private double marks = 65.0;
public void DispName()
{
System.Console.WriteLine("Name: ",; name);
}
public void DispMarks()
{
System.Console.WriteLine("Marks: ", marks);
}
}
class MainClass
{
static void Main()
{
Student s= new Student();
string n = s.DispName();
double m= s.marks;
}
}
PREPARATION:
Preparation for this assignment mostly consists of making sure that your Visual Studio 2010
Solution and Project Spaces for the assignment are set up correctly so that you can easily submit the
required files. You will need to set up a new solution called cstudentnumberPA2 within your
U:\GENG1003 folder. Within the solution have a single project called Assignment2.
PROBLEM STATEMENT:
The English Premier League (EPL) is the main sporting event in England each year. The game is
called Soccer in Australia because we play 4 different types of football; however, most of the world
simply refer to the game as Football. The Premier League has lost the source code for the program
that reports the current table of team standings. Normally, this would not cause problems because
the compiled program will continue to work until the end of the current season, whereupon it can be
replaced.
However, there is a need to report on the relative positions of the teams just including the results
from late September or October onwards on a month by month basis (or maybe two months at a
time), so clubs can know which Managers possibly need to be replaced – something that happens
regularly when a team is underperforming. So, the program needs to be re-written in its simplest
possible form to supply this information. The program will just use simple text files for input.
You will need to write a program that allows the league to feed in a simple text file of individual
match results and produce lists that are ordered alphabetically, as well as, in team performance
order.
For the Premier League, we will use shortened team names. There are 20 teams.
BACKGROUND:
Results for an EPL game are reported giving the names of the teams and the number of goals
scored, e.g. TeamA 3 TeamB 2. Note that this means that TeamA has won the game 3-2, while
TeamB has lost the game 2-3. If the number of goals for each team is equal, then the game result is
a draw, e.g. TeamC 1 TeamD 1 would be a 1-1 draw for both teams.
The teams are awarded league points for each game played: 3 for a win, 1 for a draw, and 0 for a
loss. The best team across the season (or in our case, across the time period at hand) is the team
with the most league points. If two teams have the same number of league points then the team with
the best “goal difference” is considered better, while if both these measures are equal for two teams,
then the better team is the one which has scored the most goals (make sure you read these
conditions carefully and understand them). If teams are still equal, they are simply ranked in
alphabetical order.
In order to properly report the partial league results needed, you will need to hold data (for the
current time period) for each team comprising: Games Played, League Points, Goals Scored (“Goals
For”) and Goals Conceded (“Goals Against”). The above data, along with a string to hold the team
name (a character array large enough to hold the longest name – say 16 characters), is best stored in
a C-struct for each team, with an array of these struct(s) being the complete data held for the whole
league.
NOTE: For C-struct, please refer to the lecture notes added to the assignment. Feel free to
consult during tutorial times.
Kathy, a software developer in FIT technologies, is assigned the task of optimizing the following
code:
using System;
public class SwapNumber
{
void SwapNum(ref int a, ref int b)
{
int temp;
temp = a;
a = b;
b = temp;
}
static void Main(string[] args)
{
SwapNumber classobj = new SwapNumber();
int Number1, Number2;
Console.WriteLine("Enter the first number");
Number1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the second number");
Number2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("The value of first number is {0}",
Number1);
Console.WriteLine("The value of second number is {0}",
Number2);
classobj.SwapNum(ref Number1,ref Number2);
Console.WriteLine("Now the value of first number after
swaping is {0}", Number1);
Console.WriteLine("Now the value of second number after
swapping is {0}", Number2);
}
}
Optimize the preceding code for Kathy and find out the errors (if any). What would be the output of
the preceding code, if the first number is 46 while the second number is 37? [10
LATEST TUTORIALS
APPROVED BY CLIENTS