Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.31 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 Blagoevgrad_Murals
  8. {
  9.     class Murals
  10.     {
  11.         //class for declaring murals and their prices
  12.  
  13.     }
  14.    
  15.     class Program
  16.     {
  17.         public static string[,] FillCustNamesAndMuralCodes()
  18.         {
  19.             int length = 5;//for testing purposes/ should equal to number of customers
  20.             string[,] a = new string[100, 60];
  21.             for (int i = 0; i < length; i++)//for cust. names and their mural codes
  22.             {
  23.                 a[i, 0] = Console.ReadLine();
  24.                 for (int j = 1; j < length; j++)
  25.                 {
  26.                     a[i, j] = Console.ReadLine();
  27.                 }
  28.             }
  29.             return a;
  30.         }
  31.  
  32.         public static double GetTotalRevenue(int extM,int intM ,int month)
  33.         {
  34.             double totalRevenue = 0;
  35.  
  36.             return totalRevenue;
  37.         }
  38.  
  39.         public static int GetMurals()//Gets numbe of murals from user and check if input is correct.
  40.         {
  41.             int murals;
  42.             bool notInt = false;
  43.             do
  44.             {
  45.                 Console.WriteLine("Enter month: ");
  46.                 notInt = int.TryParse(Console.ReadLine(), out murals);
  47.                 if (!notInt) Console.WriteLine("Please try again!");
  48.  
  49.                 if (notInt && murals < 0 || murals > 30)
  50.                 {
  51.                     notInt = false;
  52.                     Console.Write("The number of murals can be between 0 and 30!\n");
  53.                 }
  54.             }
  55.             while (!notInt);
  56.             return murals;
  57.         }
  58.  
  59.  
  60.         public static int GetMonth()//Gets month from user and check if input is correct.
  61.         {
  62.             int month;
  63.             bool notInt = false;
  64.             do
  65.             {
  66.                 Console.WriteLine("Enter month: ");
  67.                 notInt= int.TryParse(Console.ReadLine(),out month);
  68.                 if (!notInt) Console.WriteLine("Please try again!");
  69.  
  70.                 if (notInt && month <= 0 || month > 12)
  71.                 {
  72.                     notInt = false;
  73.                   Console.Write("A month should be between 1 and 12!\n");
  74.                 }
  75.                             }
  76.             while (!notInt);
  77.             return month;
  78.         }
  79.  
  80.  
  81.         public static void DisplayMotto()//displays motto of company
  82.         {
  83.             Console.WriteLine("   /--------------------------------- /\n" +
  84.                               "   / Make your vision your view. 2019 /\n" +
  85.                               "   /----------------------------------/\n");
  86.         }
  87.  
  88.         static void Main(string[] args)
  89.         {
  90.             DisplayMotto();
  91.             //should declare items and prices prob make a class for it
  92.             int months, interiorMurals, exteriorMurals;
  93.  
  94.             months =GetMonth();// get number month
  95.             interiorMurals = GetMurals();//should specify it is for interior
  96.             exteriorMurals = GetMurals();//should specify it is for exterior
  97.            
  98.  
  99.             string[,] aInterior = FillCustNamesAndMuralCodes(); //fills array
  100.  
  101.             string[,] aExterior = FillCustNamesAndMuralCodes(); //fills array
  102.  
  103.             Console.ReadLine();
  104.         }
  105.        
  106.     }
  107. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement