Answer:
using System;
public class Test
{
public static void Main()
{
// your code goes here
Console.Write("\nEnter the total bill : ");
double totalbeforetax = Convert.ToDouble(Console.ReadLine());
Console.Write("\nEnter the tip percentage(10% or 15%) : ");
double tip = Convert.ToDouble(Console.ReadLine());
double totalwithtax = totalbeforetax*(1+0.09);
double tipamount = tip*totalwithtax/100;
double total = totalwithtax + tipamount;
Console.WriteLine("\nTotal bill without tax: "+totalbeforetax);
Console.WriteLine("\nTotal bill with 9% tax: "+totalwithtax);
Console.WriteLine("\nTip Amount: "+tipamount);
Console.WriteLine("\nTotal bill with tax and tip: "+total);
}
}
Explanation:
The answer is true. Hope this helps.
Answer:
Explanation:
Efficiency with using the internet is mainly about practice. First, you should focus on making sure that your mouse and keyboard are comfortable devices for you and are positioned in a way that best suits your sitting style. Next would be using a browser that allows extension installing as there are many extension applications that drastically simplify everyday internet tasks such as closing a tab, or copying and pasting some text. Lastly, would be practice. Nobody is efficient when they first start learning to use something new, it takes practice. The more you do something the better you get at it.
Answer:
No. Time complexity does not depend on which base arithmetic is used.
Explanation:
No. Time complexity does not depend on which base arithmetic is used.This is because log n to the base 10 and log n to the base 2 differ by the multiplicative factor log 10 to the base 2 which is a constant value independent of n. Similar is the case while transforming from one base to any other base. Moreover multiplication by a constant value does not change the overall time complexity. So time complexity is independent of base arithmetic.