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
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. [10 Marks]
Class Maximum Amount of
Luggage
First class 50 KGs
Business class 40 KGs
Economy class 20 KGs
develop a mini project which accepts the marks of 20 students each undergoes 5 courses
(a) find average marks of each student
(b)find out overall average
(c)list out the failed student name and marks with subject
increment the number pages of a book by the number of pages enter by the user using operator overloading
increment the number of pages of a book by the number of pages enter by the user using operator overloading
Create a c# program which calculates the area of different shapes
how do you write a C# console application program that asks for three numbers and prints the average value?
Write a C# console application program that prompts the user for a name, Social Security number, hourly pay rate, and number of hours worked. Display all the input data as well as the following: (i) Gross Pay, defined as hourly pay rate times hours worked (ii) Pension fund, defined as 13.75% of the gross pay (iii) State withholding tax, defined as 17.23% of the gross pay Net pay, defined as gross pay minus taxes
which classes of the .net framework should use to ensure that the stock details are available at all the time
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