Mal Coppo

Mal Coppo

  • NA
  • 16
  • 1.3k

How do I take to inputs in c# and out put them as outputs

Feb 12 2018 2:57 AM
  1. using System; /* No idea, was advised to use it */ /*  
  2. Please dont change namespace, Dcoder and class must not be public*/    
  3. //Compiler version 4.0, .NET Framework 4.    
  4.      
  5.  namespace Dcoder    
  6.      
  7.   {    
  8.     
  9.   public class Taxation_department    
  10.    {     
  11.   public static void Main(string[] args)    
  12.    {    
  13.       Console.Write("Taxation_Department ");     
  14.     
  15.     Console.Write("\n");    
  16.   // Declared variables     
  17.              int HourlyRate; int HoursWorked; int totalpay;    
  18.         int tax; int netpay;  int taxrate;    
  19.     Console.Write("--------------------- ");     
  20.     Console.Write("\n");    
  21.     //Tangiable software converter C++ TO C# CONVERTER TODO TASK: The cout 'flush' manipulator is not converted by C++ to C# Converter: //ORIGINAL LINE: std::cout <<"Au to Us: $"<    
  22.      Console.Write("Au to Us: $");     
  23.      string buffer = Console.ReadLine();    
  24.      HoursWorked = Convert.ToDouble(buffer);    
  25.      HoursWorkes = parse.int32(Console.WriteLine())    
  26.        totalpay = HourlyRate * HoursWorked;    
  27.         tax = 0.3 * totalpay;    
  28.         netpay = totalpay - tax;    
  29.       Console.Write("--------------------- ");     
  30.       Console.Write("\n");     
  31.       Console.Write("$1 Aud to Us is $");     
  32.       Console.Write(totalpay);     
  33.       Console.Write("\n");    
  34.       Console.Write("--------------------- ");     
  35.       Console.Write(tax);     
  36.       Console.Write("\n");     
  37.            
  38.        }     
  39.            
  40.        }    
  41.        }   

Answers (3)