Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp6
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("\nWelcome to the Value-added Tax & Without Calculator 5000!");
- Console.WriteLine("\n========================");
- double P1, P2, P3, P1NoVAT, P2NoVAT, P3NoVAT, P1VAT, P2VAT, P3VAT, VAT, TotalNoVAT, TotalVAT;
- VAT = (1.17); // Known Fee Price Values
- Console.Write("\nPlease Enter the Price of Product 1: "); // Inputs for evaluating the Product Prices
- P1 = double.Parse(Console.ReadLine());
- Console.Write("\nPlease Enter the Price of Product 2: ");
- P2 = double.Parse(Console.ReadLine());
- Console.Write("\nPlease Enter the Price of Product 3: ");
- P3 = double.Parse(Console.ReadLine());
- Console.WriteLine("\n========================");
- Console.WriteLine("\nCalculating...");
- P1NoVAT = P1; // Non-VAT & VAT Calculations of Products
- P2NoVAT = P2;
- P3NoVAT = P3;
- P1VAT = (P1 * VAT);
- P2VAT = (P2 * VAT);
- P3VAT = (P3 * VAT);
- TotalNoVAT = (P1NoVAT + P2NoVAT + P3NoVAT);
- TotalVAT = (P1VAT + P2VAT + P3VAT);
- Console.WriteLine("\nIt is known that the VAT Percentage for a Product is 17%.");
- Console.WriteLine("\n========================");
- Console.WriteLine("\nListing Product Price without VAT...");
- Console.WriteLine("\nProduct 1(NO VAT): {0} NIS", P1NoVAT); // Printing the Non-VAT Price Values for the Products
- Console.WriteLine("\nProduct 2(NO VAT): {0} NIS", P2NoVAT);
- Console.WriteLine("\nProduct 3(NO VAT): {0} NIS", P3NoVAT);
- Console.WriteLine("\nTotal Product Price List(NO VAT): {0} NIS", TotalNoVAT);
- Console.WriteLine("\n========================");
- Console.WriteLine("\nListing Product Price with VAT...");
- Console.WriteLine("\nProduct 1(VAT): {0:F5} NIS", P1VAT); // Printing the VAT Price Values for the Products
- Console.WriteLine("\nProduct 2(VAT): {0:F5} NIS", P2VAT);
- Console.WriteLine("\nProduct 3(VAT): {0:F5} NIS", P3VAT);
- Console.WriteLine("\nTotal Product Price List(VAT): {0:F5} NIS", TotalVAT);
- Console.WriteLine("\n========================");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement