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

The user should be able to view data stored to the customer details file.Write the code that Elina should use to read data to the customer details file and display it to the user.
Find all the combinations between 1 and 1000 in which


1. doubling the first number and substracting from the second number will give a result of zero.


2. if the result is not 0, double the result and use it as the first number and repeat step 1.
BS Bank Inc wants to add some additional features in the application. The company asks FIT
technologies for the following additions:
? 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


Sharon has started to use both the stock details management and the file information viewer
features of the application. However, while using the file information viewer application, she
accidentally enters the path of a folder that does not exist on her computer. This caused the
application to stop responding. In addition, the format in which the stock details are displayed is
not clear. Therefore, she asks Hayley to modify the application so that:
The file information viewer does not stop responding in case a specified folder does not exist.
The stock details management application adds a line break before every stock details entry
whenever a new entry is added to the stock details file.
Write the code snippets that Hayley should use to address the preceding two requirements [10
Marks]



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.
[10 Marks]
The development team of SoftSols Inc. analyzes the source code of the existing software and
notes the following observations:
The software contains a private class, named bookTickets, that contains the methods used to
perform ticket bookings for various flights.
There is no class or function that can be used to check the maintenance details of FlyHigh's
aircrafts.
Based on the preceding observations, the development team decides to perform the following
tasks:
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.
Write the code snippet that the development team should use to accomplish each of the preceding
tasks.
1.
2.
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 userfriendly
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. [5 Marks]
After a lot of debate, the management of AutoZig Enterprise decides to add some more features in the application. The company asks WebSoft Solutions Pvt. Ltd. for the following additions: The application should be able to count the number of automobile parts sold every week depending upon the number of new entries of parts in the application. If a part is not sold for more than six months after its date of manufacture, the application should prompt a message, "Urgent Sale Required". Help the programmers at WebSoft Solutions Pvt. Ltd. to develop the code for this feature.
FlyHigh Airlines allows each passenger to carry limited amount of luggage per ticket. The
maximum amount of luggage that can be carried by a passenger depends on the class in which
the passenger is travelling. The following table lists the maximum amount of luggage allowed for
each class.
If a passenger carries luggage above the maximum amount permissible for the class in which
he/she is travelling in, the passenger is levied an additional cost at the rate of $2/additional KG.
Currently, this cost is calculated manually, which is a time consuming process. Therefore, the
management of FlyHigh Airlines has asked SoftSols Inc. to create an application that accepts the
total weight of a luggage carried by a passenger, checks whether it is more than the maximum
amount allowed for the passenger's class of travel, and then calculates the additional cost that
needs to be levied on the passenger. In addition, SoftSols Inc. needs to ensure that the application
is able to handle the weight of luggage in whole numbers as well as decimal numbers.
Write the code that SoftSols Inc. should use to create the desired application.
Task 2: Create a class Person with member data name, ID, constructor, destructor and member function display.
Create a class Student_info, which inherits class Person, in which member data for faculty number, group and faculty are added. The class contains a constructor, member functions for accessing the data, for change of ID and for displaying the data.
Add Class Student_marks, which inherits class Student_info and contains marks in 3 subjects, constructor, member function show () to display the marks and member function av() to calculate the average grade.
LATEST TUTORIALS
APPROVED BY CLIENTS