C# Answers

Questions answered by Experts: 1 362

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

• • • •
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.
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;
}
}
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
The operations-related data of FlyHigh Airlines is stored in a central database. The software

fails to respond to user inputs, if there is a connectivity problem with the database. Add the code

snippet that the development team should use to ensure that the application shows a user-
friendly message, if such a situation arises in future.[5
How do I run a subprogram from a different class
LATEST TUTORIALS
APPROVED BY CLIENTS