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 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?
Specify the reason for your answer.
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
Create a console program that calculates and displays a person’s annual salary over a specific number of years, starting in 2014. The user provides the:
- Starting salary
- Percentage salary increase per year
- Number of years for which to do the calculations
Also calculate and display the total income over all the years
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? Specify the reason for your answer.
Elina has started developing the application. She needs to ensure that the application meets the
following requirements:
When the application executes for the first time, it should perform the following tasks:
Display a message to the user to specify the path of the file in which the customer details are to
be stored.
Create the customer details file at the user-defined location.
Create a configuration file and store the path of the customer details file in the configuration file.
This configuration file needs to be used by the application to retrieve the location of the customer
details file.
The user should be able to save data to the customer details file. Write the code that Elina
should use to save data to the customer details file.
The user should be able to view the data stored in the customer details file. Write the code that
Elina should use to read the data stored in the customer details file and display it to the user.
[10 Marks]
i want a c# program currency converter.
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.
Michael is a software developer in FIT technologies. He wants to add a currency converter in the
application for the convenience of international customers. Help Michael in creating the currency
converter
Michael is a software developer in FIT technologies. He wants to add a currency converter in the application for the convenience of international customers. Help Michael in creating the currency converter. [10 Marks
Hayley has started the application development. She needs to ensure that the application meets
the following requirements:
When the application starts, it should display a message asking the user to enter either option d or
v. The application should execute the following actions for the two options:
d: The application should display the file extension of the stock details.
v: The application should open the stock details file in the read-only mode and display its
contents.
Write the code snippet that Hayley should use to implement the desired functionality in the
application.
In case the user presses any other key, the application should open the stock details file in the
read/write mode, display a message to enter new stock details, and save the details that the user
has entered. Write the code snippet that Hayley should use to accomplish the preceding task. [10
Marks]
LATEST TUTORIALS
APPROVED BY CLIENTS