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 Okrajnost_vpisana_v_pravoagalnik_s_radion_0._0._5
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Please put an input for your first value\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Note, Say \"No\" if you don't have an input for a!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!\"Any other word would have critical damage and the!");
- Console.WriteLine("!!!Program will shut down emideatly!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- string a;
- a = Console.ReadLine();
- if (a == "No")
- {
- Console.WriteLine("You don't have an input for a:");
- }
- else if (Convert.ToInt32(a) <= 127)
- {
- if (Convert.ToInt32(a) > 127)
- {
- Console.WriteLine("Exception you cannot put a number above 127");
- }
- else
- {
- Console.WriteLine("Your input for a is:" + a);
- }
- }
- Console.WriteLine("Please put an input for your Second value\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Note, Say \"No\" if you don't have an input for a!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!\"Any other word would have critical damage and the!");
- Console.WriteLine("!!!Program will shut down emideatly!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- string b;
- b = Console.ReadLine();
- if (b == "No")
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("Error!!! your assigment doesn't have a salution please refer to a diffrent software\n !!Code 1245!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- }
- if (Convert.ToInt32(b) <= 127)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Your Input for b is!!!");
- Console.WriteLine("!!! {0} !!!", b);
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!");
- }
- byte c = 5;
- int ABC;
- ABC = Convert.ToInt32(a) & Convert.ToInt32(b);
- int CountingMethod1 = (Convert.ToInt32(a) * Convert.ToInt32(a)) + (Convert.ToInt32(b) * Convert.ToInt32(b));
- object Salution = (CountingMethod1 <= c);
- if (ABC >= 0)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!You have defined your values \"(a={0},b={1},c={2})\",Now we are !!!!!", a, b, c);
- Console.WriteLine("!!!going to calculate if the point o is in the circle K with the !!!!!");
- Console.WriteLine("!!! Formula:A2*B2=C2 !!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!! We are Calculating your salution!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!! {0}!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", Salution);
- }
- else if (CountingMethod1 <= c)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!The point that your calculating is inside the circle ((0.0,5))!!!!!!");
- Console.Beep();
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!Your point is ((0.0,{0}))!!!!!!!!!!!!!!!!!!!!", CountingMethod1);
- Console.WriteLine("!!!Thank you for using our circle point calculator modify the range of!!");
- Console.WriteLine("!!!C to increase the range of the circle , Created by Kristifor Milchev!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(v0.01)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- }
- else if (CountingMethod1 >= c)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!The point that your calculating is outside the circle ((0.0,5))!!!!!!");
- Console.Beep();
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!Your point is (({0},5))!!!!!!!!!!!!!!!!!!!!", CountingMethod1);
- Console.WriteLine("!!!Thank you for using our circle point calculator modify the range of!!");
- Console.WriteLine("!!!C to increase the range of the circle , Created by Kristifor Milchev!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(v0.01)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- }
- start:
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Input value for a of the cube!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- string aP = Console.ReadLine();
- if(aP == "No")
- {
- Console.WriteLine("!!!!!!!!!!!!!");
- Console.WriteLine("!!!Proceeed!!");
- Console.WriteLine("!!!!!!!!!!!!!");
- }
- else if(Convert.ToInt32(aP) >=0)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!Your input!!!!");
- Console.WriteLine("!!For ab is {0}!!!",Convert.ToInt32(aP));
- Console.WriteLine("!!!!!!!!!!!!!!!!");
- }
- else if (Convert.ToInt32(aP) <= 0)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!Your input!!!!");
- Console.WriteLine("!!For ab is {0}!!!", Convert.ToInt32(aP));
- Console.WriteLine("!!!!!!!!!!!!!!!!");
- }
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Input value for b of the cube!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- string bP = Console.ReadLine();
- if(bP == "No")
- {
- Console.WriteLine("!!!!!!!!!!!!!");
- Console.WriteLine("!!!Proceeed!!");
- Console.WriteLine("!!!!!!!!!!!!!");
- }
- else if(Convert.ToInt32(bP)>=1||Convert.ToInt32(bP)<=0)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!Your input!!!!");
- Console.WriteLine("!!For bc is {0}!!!!", Convert.ToInt32(bP));
- Console.WriteLine("!!!!!!!!!!!!!!!!");
- }
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Input value for c of the cube!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- string cP = Console.ReadLine();
- if(cP == "No")
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Error you cannot proceed!!");
- Console.WriteLine("!!!you have to know atleast!!");
- Console.WriteLine("!!!Two sides of the cude in!!");
- Console.WriteLine("!!!Order to proceed!!!!!!!!!!");
- Console.WriteLine("!!Returning to the cube start!");
- Console.WriteLine("??????????????????????????????");
- if(aP=="No"&&bP=="No"&&cP=="No")
- {
- goto start;
- }
- }
- else if(Convert.ToInt32(cP)>=1||Convert.ToInt32(cP)<=0)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!Your input!!!!");
- Console.WriteLine("!!For CD is {0}!!!!", Convert.ToInt32(cP));
- Console.WriteLine("!!!!!!!!!!!!!!!!");
- }
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Input value for d of the cube!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- string dP = Console.ReadLine();
- if(dP == "No")
- {
- Console.WriteLine("!!!!!!!!!!!!!");
- Console.WriteLine("!!!Proceeed!!");
- Console.WriteLine("!!!!!!!!!!!!!");
- if(aP=="No"&&bP=="No"&&cP=="No"&&dP=="No")
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Error you cannot proceed!!");
- Console.WriteLine("!!!you have to know atleast!!");
- Console.WriteLine("!!!Two sides of the cude in!!");
- Console.WriteLine("!!!Order to proceed!!!!!!!!!!");
- Console.WriteLine("!!Returning to the cube start!");
- Console.WriteLine("??????????????????????????????");
- goto start;
- }
- }
- else if(Convert.ToInt32(dP)>=1||Convert.ToInt32(dP)<=1)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!Your input!!!!");
- Console.WriteLine("!!For AD is {0}!!!!", Convert.ToInt32(dP));
- Console.WriteLine("!!!!!!!!!!!!!!!!");
- }
- bool abcd;
- abcd = (Convert.ToInt32(aP) <= 0 || Convert.ToInt32(aP) >= 1) || (Convert.ToInt32(bP) <= 1 || Convert.ToInt32(bP) >= 1) ||
- (Convert.ToInt32(cP) >= 1 || (Convert.ToInt32(cP) <= 0)) || (Convert.ToInt32(dP) >= 1 || Convert.ToInt32(dP) <= 0);
- if(abcd == true)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Your cube ABCD is with sizes equals to!!!!!!!");
- Console.WriteLine("!!!AB = {0} BC = {1} BC = {2} CD = {3} !!!!!!!!!!!!!!!!!!!!!",aP,bP,cP,dP);
- Console.WriteLine("!!!You know the size of the cube now your !!!!!!");
- Console.WriteLine("!!!to proceed with the program!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- }
- int abc;
- abc = 90;
- int adc;
- adc = 90;
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!You have to put input for the corner BCD note !!!");
- Console.WriteLine("!!!If you don't have an input say \"No\" and go !!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!--Futher--!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- string bcd;
- bcd = Console.ReadLine();
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!You have to put input for the corner CDA note !!!");
- Console.WriteLine("!!!If you don't have an input say \"No\" and go !!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!--Futher--!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- string cda;
- cda = Console.ReadLine();
- if(Convert.ToInt32(bcd) >= 1)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("Your input for the corner BCD is");
- Console.WriteLine("!!!!!!!!!!!!!!{0}!!!!!!!!!!!!!!!!",bcd);
- }
- else if(bcd=="No")
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!!Proceed!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!");
- }
- if(Convert.ToInt32(cda)>=1)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("Your input for the corner CDA is");
- Console.WriteLine("!!!!!!!!!!!!!!{0}!!!!!!!!!!!!!!!!", cda);
- }
- else if(cda=="No")
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!!Proceed!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!");
- }
- if(cda=="No"&&bcd=="No")
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!You don't know the corners for!!");
- Console.WriteLine("!!!CDA and BCD thefore your cube!!!");
- Console.WriteLine("!!!Is determinated by the other !!!");
- Console.WriteLine("!!!two corners that are ABC and !!!");
- Console.WriteLine("!!!ADC they both equal to 90 deg!!!");
- Console.WriteLine("!!!rees and this means that the !!!");
- Console.WriteLine("!!!the cube exsists and its forged!!");
- Console.WriteLine("!!!under the field of ABCD you can!!");
- Console.WriteLine("!!!!!!!!!!Proceed!!!!!Futher!!!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- }
- else if(Convert.ToInt32(cda)>=1||Convert.ToInt32(bcd)>=1)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Great the cube exsists!!!");
- Console.WriteLine("!!!You can now proceeed!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- }
- int degrees = 3 * 90;
- bool checkif;
- checkif = abcd;
- if(checkif)
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!You have come to the final stage of the program.!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Now we are going to make a conclusion of the assigment!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!We are going to check if the point o is inside the circle!!!!!!!!!!!!");
- Console.WriteLine("!!!k that is inside the cube abcd we are going to use the rule!!!!!!!!!!");
- Console.WriteLine("!!!for equal corners that states that two equal corners of 90!!!!!!!!!!!");
- Console.WriteLine("!!!degree makes enough to state that the cube exsists and all!!!!!!!!!!!");
- Console.WriteLine("!!!corners equal to each other or in numbers \"{0}\"exactly degree!!!!!!",degrees );
- Console.WriteLine("!!!We are calculating the descision please wait for the check process!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.Beep();
- Console.WriteLine("$$$$$$$$$$$$$$$$$$$$$");
- Console.WriteLine("$Loading please wait$");
- Console.WriteLine("$$$$$$$$$One$$$$$$$$$");
- Console.Beep();
- Console.WriteLine("$$$$$$$$$$$$$$$$$$$$$");
- Console.WriteLine("$Loading please wait$");
- Console.WriteLine("$$$$$$$$Two$$$$$$$$$$");
- Console.Beep();
- Console.WriteLine("$$$$$$$$$$$$$$$$$$$$$");
- Console.WriteLine("$Loading please wait$");
- Console.WriteLine("$$$$$$$$$Three$$$$$$$");
- Console.Beep();
- Console.WriteLine("$$$$$$$$$$$$$$$$$$$$$");
- Console.WriteLine("$Loading please wait$");
- Console.WriteLine("$$$$$$$$$Four$$$$$$$$");
- Console.Beep();
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Loading compleate!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Now we are going to proceed with the next step of the assigmnet please!!!");
- Console.WriteLine("!!!wait to check the score of the assigment that you need done !!!!!!!!!!!!!");
- Console.Beep();
- Random r = new Random();
- int number1 = r.Next(1,20);
- if((Convert.ToInt32(aP)>=number1)||(Convert.ToInt32(bP)>=number1)||(Convert.ToInt32(cP)>=number1)||(Convert.ToInt32(dP)>=number1))
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Your number is greater then 5 witch means that its outside the circle!!!");
- Console.WriteLine("!!!((0.0.5)) that is surrounded by the cube (({0}.{1}.{2}.{3]))therefore!!!", Convert.ToInt32(aP), Convert.ToInt32(bP), Convert.ToInt32(cP), Convert.ToInt32(dP));
- Console.WriteLine("!!!Your point is exactly at the size of ((0.0.{0}) witch means that your!!!");
- Console.WriteLine("!!!Salution is equal to {0} witch is the point outide the circle and the!!!",Salution);
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Cube!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- }
- else if((Convert.ToInt32(aP)<=number1)||(Convert.ToInt32(bP)<=number1)||(Convert.ToInt32(cP)<=number1)||(Convert.ToInt32(dP)<=number1))
- {
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- Console.WriteLine("!!!Your number is greater then 0.1 witch means that its inside the circle!!!");
- Console.WriteLine("!!!((0.0.5)) that is surrounded by the cube (({0},{1},{2},{3]))therefore!!!", Convert.ToInt32(aP), Convert.ToInt32(bP), Convert.ToInt32(cP), Convert.ToInt32(dP));
- Console.WriteLine("!!!Your point is exactly at the size of ((0.0.{0}) witch means that your!!!",number1);
- Console.WriteLine("!!!Salution is equal to {0} witch is the point inside the circle and the!!!",Salution);
- Console.WriteLine("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Cube!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement