MuffinMonster

Class Tasks 2#

Sep 2nd, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double payment;
  14.             int TimeMin, TimeTofes, doc, TimeH;
  15.             Console.WriteLine("Please enter the ammount of documents the worker has to fill:");
  16.             doc = int.Parse(Console.ReadLine());
  17.             TimeTofes = 10;
  18.             TimeH = doc * TimeTofes;
  19.             payment = doc * 6.8;
  20.             TimeMin = TimeH % 60;
  21.             TimeH = TimeH / 60;
  22.             Console.WriteLine("The worker will be working " + TimeH + " hours & " + TimeMin + " minutes, will recieve a total payment of " + payment + " nis");
  23.  
  24.             Console.ReadKey();
  25.  
  26.         }
  27.     }
  28. }
Add Comment
Please, Sign In to add comment