Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Blagoevgrad_Murals
- {
- class Murals
- {
- //class for declaring murals and their prices
- }
- class Program
- {
- public static string[,] FillCustNamesAndMuralCodes()
- {
- int length = 5;//for testing purposes/ should equal to number of customers
- string[,] a = new string[100, 60];
- for (int i = 0; i < length; i++)//for cust. names and their mural codes
- {
- a[i, 0] = Console.ReadLine();
- for (int j = 1; j < length; j++)
- {
- a[i, j] = Console.ReadLine();
- }
- }
- return a;
- }
- public static double GetTotalRevenue(int extM,int intM ,int month)
- {
- double totalRevenue = 0;
- return totalRevenue;
- }
- public static int GetMurals()//Gets numbe of murals from user and check if input is correct.
- {
- int murals;
- bool notInt = false;
- do
- {
- Console.WriteLine("Enter month: ");
- notInt = int.TryParse(Console.ReadLine(), out murals);
- if (!notInt) Console.WriteLine("Please try again!");
- if (notInt && murals < 0 || murals > 30)
- {
- notInt = false;
- Console.Write("The number of murals can be between 0 and 30!\n");
- }
- }
- while (!notInt);
- return murals;
- }
- public static int GetMonth()//Gets month from user and check if input is correct.
- {
- int month;
- bool notInt = false;
- do
- {
- Console.WriteLine("Enter month: ");
- notInt= int.TryParse(Console.ReadLine(),out month);
- if (!notInt) Console.WriteLine("Please try again!");
- if (notInt && month <= 0 || month > 12)
- {
- notInt = false;
- Console.Write("A month should be between 1 and 12!\n");
- }
- }
- while (!notInt);
- return month;
- }
- public static void DisplayMotto()//displays motto of company
- {
- Console.WriteLine(" /--------------------------------- /\n" +
- " / Make your vision your view. 2019 /\n" +
- " /----------------------------------/\n");
- }
- static void Main(string[] args)
- {
- DisplayMotto();
- //should declare items and prices prob make a class for it
- int months, interiorMurals, exteriorMurals;
- months =GetMonth();// get number month
- interiorMurals = GetMurals();//should specify it is for interior
- exteriorMurals = GetMurals();//should specify it is for exterior
- string[,] aInterior = FillCustNamesAndMuralCodes(); //fills array
- string[,] aExterior = FillCustNamesAndMuralCodes(); //fills array
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement