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

Create an application that determines the total due including sales tax and shipping. Allow the user to input any number of item prices. Sales tax of 7% is charged against the total purchases. Shipping charges can be determined from the following chart. Display an itemized summary containing the total purchase charge, sales tax amount, shipping charge, and grand total.
$0-$250.00 $5.00
$250.01-$500.00 $8.00
$500.01-$1000.00 $10.00
$1000.01-$5000.00 $15.00
over $5000.00 $20.00
Write a program that will calculate and output the following:
a) Gross Wage
b) Deductions (15% of gross)
c) Nett Wage
Note: The concept of wages.... inputs
Sharon is the owner of a supermarket. She sells a large variety of grocery items through her
supermarket, such as toothpastes, soaps, and other household items.
Currently, Sharon keeps track of the different items available in stock manually. However, the
number of items sold through the supermarket has increased tremendously. Therefore, Sharon
spends long periods of time to keep track of each and every item.
To ensure easy and effective management of the stock details, Sharon decides to use a
customized application. For this purpose, she approaches the AlphaSoft Inc., which is a software
development organization. The management of AlphaSoft Inc. asks Hayley, a software developer,
to handle the application development requirements of Sharon.
Hayley conducts a meeting with Sharon and notes the following requirements for the application:
Sharon does not have the budget to implement Relational Database Management System
(RDBMS). However, she needs the stock details to be available at all times. Therefore, the
application needs to store the inventory details persistently on Sharon's computer.
The application should allow Sharon to perform the following tasks:
Add details of new items to the stock.
Modify the details of existing items.
View the last modified date of the stock details file.
Question:
Sharon decides to develop the application using C#. Analyze the preceding scenario and answer
the following questions:
Which classes of the .NET Framework should Hayley use to ensure that the stock details are
available to Sharon at all times? Justify your answer along with reasons. [6 Marks]
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. [4 Marks]
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#.
Design a solution that prints the amount of pay a commissioned salesperson takes home. The more sales documented, the larger the commission rate.Allow the user to input a total sales amount for the week. Compute the commission based on the following table. Display the pay amount formatted with commas, decimals, and a dollar symbol.
less than $1000: 3% $1001–$5000: 5% $5001–$10000: 6% over $10000: 7%
Be sure to design your solution so that all possible situations are accounted for and tested. What values did you enter and test to verify your program’s correctness?
what is the output:
#include <stdio.h>
int drive();
int main()
{
int a,b;
printf("Enter your Num");
scanf("%d", &a);
b=drive(a);
printf("%d\n", b);
return 0;
}

int drive(int p)
{
int q,r,s,t,count=0;
for (q=1;q<p;q++){
if (p%q == 0){
r=q; // if p=35 dn r=1,3,5,7//
for (s=2;s<r/2;s++){
if (r%s == 0){
count++;
}

}
if (count == 0 && r!=1)
t=r;

}

}
return t;
}
to find factorial of a number by using interface..
which features of c# net allow reuse the existing application code?
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.
describe the different method of the classes that Elina would be using to implement file input and output operations in the application.
LATEST TUTORIALS
APPROVED BY CLIENTS