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

Elina decides to develop the application using C#. Analyze the preceding scenario and answer the
following questions:
Which classes of the .NET Framework should Elina use to implement file input and output
operations in the application? Justify the reason for the same. [5 Marks]
Describe the different methods of the classes that Elina would be using to implement file input
and output operations in the application. [5 Marks]
Create a base class to hold information about sporting teams on campus. It should not be possible to instantiate the class. Include common characteristics such as primary coach and type of sport. Define a minimum of one virtualmethod.
For this project, WebSoft Solutions Pvt. Ltd. conducts a recruitment drive to hire 10 software
developers to work on various modules of the application. It conducts a written examination and
asks the aspiring candidates to create a console-based calculator application. The calculator
should be able to solve basic mathematical calculations.
The calculator should store the result of an expression in a variable called "ans", which can be
used as an input in other mathematical expressions, as shown in the following statements:
>calculate 25*(3+5-(10/2))
ans=75
>calculate ans+10
ans=85
>calculate ans*10/5
However, the candidate can declare any variable to store the result. Being an aspiring candidate,
develop the console-based calculator using C#.
Joe has joined FIT technologies recently as a software developer. He is a fresher and does not
know advanced programming techniques. To include him in the team that is developing the
application, Damien, the Project Manager, decides to conduct a test for him. He prepares a test that includes the following questions:
1. Explain all the access specifiers supported in C#.
2. The execution goes back to the caller by default, when the last statement in a method is reached.? Assuming that no return statement is used, do you agree with the preceding statement?
1.
2.
Elina develops the customer details maintenance application and the EMI calculator application
and provides both the applications to Dwayne for testing. While testing the applications, Dwayne
discovers the following problems:
The application displayed a message to the user to enter the path of the customer details file.
However, the customer details maintenance application crashed as Dwayne mistakenly entered
the wrong file path. Therefore, he asks Elina to modify the application so that it does not crash
due to similar errors. Modify the code that Elina needs to accomplish the preceding task. [5
Marks]
The EMI calculator application crashed when Dwayne accidentally entered zero as the rate of
interest. Therefore, he asks Elina to modify the application so that it displays an error message
if the principal amount, rate of interest, or tenure of the loan entered is invalid. Add the code
snippet that Elina should use to modify the application according to the preceding requirements.
[5 Marks]
which feature of c# will allow SoftSols Inc.to reuse the existing application code?
While entering the information about different automobile parts in the application, the database
administrator enters the prices of some parts incorrectly. The prices are swapped between
various parts. Create an application that can swap the prices of all the automobile parts and can
assign the correct price against a particular automobile p
The application used to calculate the cost of carrying additional luggage results in erroneous amount, if the weight of the luggage is a fractional number. Help the development team modify the code snippet so that the cost of carrying additional luggage is calculated correctly.
The development team of SoftSols Inc. has revamped the software according to the requirements of FlyHigh Airlines and is in the process of testing the software. While testing the software, the team encounters the following issues: 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 Marks] The application used to calculate the cost of carrying additional luggage results in erroneous amount, if the weight of the luggage is a fractional number. Help the development team modify the code snippet so that the cost of carrying additional luggage is calculated correctly.
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?
LATEST TUTORIALS
APPROVED BY CLIENTS