teleren/devto huggingface dataset:
2. Weekend or Working Days (Switch Construction)
Tags: csharp, softuni, conditionalstatementadvanced, lab
Published: 2023-01-20 23:28:29

```cs
using System;

namespace WeekendOrWorkingDay_Switch
{
internal class Program
{
    static void Main(string[] args)
    {
        string days = Console.ReadLine();

        switch (days)
        {
            case "Monday":
            case "Tuesday":
            case "Wednesday":
            case "Thursday":
            case "Friday":
                Console.WriteLine("Working day");
                break;

            case "Saturday":
            case "Sunday":
                Console.WriteLine("Weekend");
                break;

            default:
                    Console.WriteLine("Error");
                break;
        }
    }
}
}
```
Buca Satılık Daire
Published: 2023-01-20 23:28:10

İzmir [**Buca Satılık Daire**](https://www.konseptgayrimenkul.com/buca-satilik-daire) ve Evler **Konsept Gayrimenkul** Buca Emlak Ve Gayrimenkul Ofisi Ofisinde
Annotate Gem
Published: 2023-01-20 23:27:00

The Annotate Gem adds detailed annotations in the model file for each data model. 

1. First, add "gem 'annotate'" to the development group in the Gemfile.

2. Once installed, run 'annotate --models' in the terminal to annotate all models.

2. (cont.) If this fails, run 'bundle exec annotate' instead.

3. We can also do 'rails g annotate:install' to create a rake task that will create annotations anytime we do rails db:migrate.
2. Weekend or Working (If Construction)
Tags: csharp, softuni, conditionalstatementsadvanced, lab
Published: 2023-01-20 23:25:47

```cs
using System;

namespace WeekendOrWorkindDay
{
internal class Program
{
    static void Main(string[] args)
    {
        string days = Console.ReadLine();

        if (days == "Monday" || days == "Tuesday" || days == "Wednesday" || days == "Thursday" || days == "Friday")
        {
            Console.WriteLine("Working day");
        }
        else if (days == "Saturday" || days == "Sunday")
        {
            Console.WriteLine("Weekend");
        }
        else
        {
            Console.WriteLine("Error");
        }
    }
}
}
```
1. Day of Week (Switch Construction)
Tags: csharp, softuni, conditionalstatementsadvanced, lab
Published: 2023-01-20 23:24:59

```cs
using System;

namespace DayOfWeek
{
internal class Program
{
    static void Main(string[] args)
    {
        int dayOfWeek = int.Parse(Console.ReadLine());

        switch (dayOfWeek)
        {
            case 1:
            Console.WriteLine("Monday");
                break;

            case 2:
            Console.WriteLine("Tuesday");
                break;

            case 3:
            Console.WriteLine("Wednesday");
                break;

            case 4:
                Console.WriteLine("Thursday");
                break;

            case 5:
                Console.WriteLine("Friday");
                break;

            case 6:
                Console.WriteLine("Saturday");
                break;

            case 7:
                Console.WriteLine("Sunday");
                break;

            default:
                Console.WriteLine("Error");
                break;
        }
    }
}
}
```
1. Day of Week (If Construction)
Tags: csharp, softuni, conditionalstatementsadvanced, lab
Published: 2023-01-20 23:24:14

```cs
using System;

namespace DayOfWeek
{
internal class Program
{
    static void Main(string[] args)
    {
        int dayOfWeek = int.Parse(Console.ReadLine());

        if (dayOfWeek == 1)
        {
            Console.WriteLine("Monday");
        }
        else if (dayOfWeek == 2)
        {
            Console.WriteLine("Tuesday");
        }
        else if (dayOfWeek == 3)
        {
            Console.WriteLine("Wednesday");
        }
        else if (dayOfWeek == 4)
        {
            Console.WriteLine("Thursday");
        }
        else if (dayOfWeek == 5)
        {
            Console.WriteLine("Friday");
        }
        else if (dayOfWeek == 6)
        {
            Console.WriteLine("Saturday");
        }
        else if (dayOfWeek == 7)
        {
            Console.WriteLine("Sunday");
        }
        else
        {
            Console.WriteLine("Error");
        }
    }
}
}
```
8. Lunch Break
Tags: csharp, softuni, conditionalstatements, exercise
Published: 2023-01-20 23:23:19

```cs
using System;

namespace LuchBreak
{
internal class Program
{
    static void Main(string[] args)
    {
        string seriesName = Console.ReadLine();
        int episodeDuration = int.Parse(Console.ReadLine());
        int breakDuration = int.Parse(Console.ReadLine());

        double luchTime = breakDuration / 8.0;
        double breakTime = breakDuration / 4.0;

        double remainingTime = breakDuration - (luchTime + breakTime);

        double neededTime = remainingTime - episodeDuration;

        if (remainingTime >= episodeDuration)            
        {
            Console.WriteLine($"You have enough time to watch {seriesName}" +
                $" and left with {Math.Ceiling(neededTime)} minutes free time.");
        }
        else
        {
            Console.WriteLine($"You don't have enough time to watch {seriesName}" +
                $", you need {Math.Ceiling(Math.Abs(neededTime))} more minutes.");
        }
    }
}
}
```
7. Shopping
Tags: csharp, softuni, conditionalstatements, exercise
Published: 2023-01-20 23:22:46

```cs
using System;

namespace Shopping
{
internal class Program
{
    static void Main(string[] args)
    {
        double peturBudget = double.Parse(Console.ReadLine());
        int gpuAmount = int.Parse(Console.ReadLine());
        int cpuAmount = int.Parse(Console.ReadLine());
        int ramAmount = int.Parse(Console.ReadLine());

        double gpuPrice = gpuAmount * 250;
        double cpuPrice = (gpuPrice * cpuAmount) * 0.35;
        double ramPrice = (gpuPrice * ramAmount) * 0.10;

        double totalPrice = gpuPrice + cpuPrice + ramPrice;

        if (gpuAmount > cpuAmount)
        {
            totalPrice -= totalPrice * 0.15;
        }

        double remainingBudget = peturBudget - totalPrice;
        double neededBudget = totalPrice - peturBudget;

        if (totalPrice <= peturBudget)
        {
            Console.WriteLine($"You have {remainingBudget:F2} leva left!");
        }
        else if (totalPrice > peturBudget)
        {
            Console.WriteLine($"Not enough money! You need {neededBudget:F2} leva more!");
        }
    }
}
}
```
6. World Swimming Record
Tags: csharp, softuni, conditionalstatements, exercise
Published: 2023-01-20 23:21:51

```cs
using System;

namespace WorldSwimRecord
{
internal class Program
{
    static void Main(string[] args)
    {
        double recordInSeconds = double.Parse(Console.ReadLine());
        double distanceInMetters = double.Parse(Console.ReadLine());
        double timeInSeconds = double.Parse(Console.ReadLine());

        double swimmingTime = distanceInMetters * timeInSeconds;

        double added15Minutes = Math.Floor(distanceInMetters / 15) * 12.5;

        double totalTime = swimmingTime + added15Minutes;

        double notEnoughTime = totalTime - recordInSeconds;
        

        if (totalTime < recordInSeconds)
        {

            Console.WriteLine($"Yes, he succeeded! The new world record is {totalTime:F2} seconds.");
            
        }
        else if (totalTime >= recordInSeconds)
        {
            Console.WriteLine($"No, he failed! He was {notEnoughTime:F2} seconds slower.");
        }
    }
}
}
```
5. Godzilla vs. Kong
Tags: csharp, softuni, conditionalstatements, exercise
Published: 2023-01-20 23:21:04

```cs
using System;

namespace GodzillaVS.Kong
{
internal class Program
{
    static void Main(string[] args)
    {
        double movieBudget = double.Parse(Console.ReadLine());
        int supernumeraryAmount = int.Parse(Console.ReadLine());
        double clothingPricePerEach = double.Parse(Console.ReadLine());

        double decorPrice = movieBudget * 0.1;
        double clothingPrice = supernumeraryAmount * clothingPricePerEach;

        double clothingDiscount = 0.0;

        if (supernumeraryAmount >= 150)
        {
           clothingDiscount = clothingPrice * 0.1;
        }

        double moneyForClothing = clothingPrice - clothingDiscount;

        double totalMoviePrice = decorPrice + moneyForClothing;


        double remainingMoney = movieBudget - totalMoviePrice;
        double notEnoughMoney = totalMoviePrice - movieBudget;

        if (totalMoviePrice > movieBudget)
        {
            Console.WriteLine($"Not enough money!");
            Console.WriteLine($"Wingard needs {notEnoughMoney:F2} leva more.");
        }
        else if (totalMoviePrice <= movieBudget)
        {
            Console.WriteLine($"Action!");
            Console.WriteLine($"Wingard starts filming with {remainingMoney:F2} leva left.");
        }
    }
}
}
```
6 GitHub 🔥 repositories allow you to work at 100% efficiency 👩‍💻
Tags: programming, webdev, beginners, tutorial
Published: 2023-01-20 23:20:42

- GitHub repositories are a great way to work at 100% efficiency.
- This open source platform allows users to store, manage and share their code with others. 
- With the help of GitHub, developers can collaborate on projects more efficiently than ever before. 
- They also have access to powerful tools that make coding easier and faster.
- One of the most useful GitHub repositories is called “Code Sandbox” which provides an online environment for creating web applications without having to install any software or libraries locally.
- It includes features such as auto-completion, syntax highlighting, real-time collaboration and debugging tools so you can quickly develop your project in a secure environment online without worrying about configuration issues or compatibility problems between different systems or platforms. 
- Another popular repository is “GitLab” which offers similar features but with additional benefits like issue tracking, CI/CD pipelines for automation testing and deployment as well as built-in version control system integration so teams can easily keep track of changes made during development process more effectively than ever before.
- Furthermore it also supports private repositories where only invited members will be able view its contents making sure confidential information remains safe from unauthorized access while still allowing everyone working on same project stay up-to date with latest developments taking place within team circle.
- All these functions together allow users optimize their workflow by automating tedious tasks thus improving overall productivity level significantly over time. 

Happy working.

######The following are the top 6  GitHub repositories that will help you do your job:

🎥 {% youtube IEYmwK0Joew%}

######Bonus

7 🔥 programming repos you'll wish you knew sooner 👩‍💻

🎥 {% youtube 6y8tCoaypg0%}


### Connect with Me 😊

#### 🔗 Links

[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/mahmoud-el-kariouny-822719149/)

[![twitter](https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/Mahmoud42275)
4. Toy Shop
Tags: csharp, softuni, conditionalstatements, exercise
Published: 2023-01-20 23:19:59

```cs
using System;
using System.Reflection.Metadata.Ecma335;

namespace ToyShop
{
internal class Program
{
    static void Main(string[] args)
    {
        double tourPrice = double.Parse(Console.ReadLine());
        int puzzleAmount = int.Parse(Console.ReadLine());
        int speakingDollsAmount = int.Parse(Console.ReadLine());
        int fluffyBearsAmount = int.Parse(Console.ReadLine());
        int minionsAmount = int.Parse(Console.ReadLine());
        int trucksAmount = int.Parse(Console.ReadLine());

        double puzzlePrice = puzzleAmount * 2.60;
        double speakingDollPrice = speakingDollsAmount * 3.0;
        double fluffyBearPrice = fluffyBearsAmount * 4.10;
        double minionPrice = minionsAmount * 8.20;
        double truckPrice = trucksAmount * 2.0;

        double totalPrice = puzzlePrice + speakingDollPrice + fluffyBearPrice +
            minionPrice + truckPrice;

        double totalAmount = puzzleAmount + speakingDollsAmount + fluffyBearsAmount +
            minionsAmount + trucksAmount;

        
        double discountedPrice = 0.0;

        if (totalAmount >= 50)
        {
            discountedPrice = totalPrice * 0.25;
        }

        double finalPrice = totalPrice - discountedPrice;
        double rentPrice = finalPrice * 0.1;
        double expectedProfit = finalPrice - rentPrice;

        double remainingMoney = expectedProfit - tourPrice;
        double notenoughMoney = tourPrice - expectedProfit;
        if (expectedProfit >= tourPrice)
        {
            Console.WriteLine($"Yes! {remainingMoney:F2} lv left.");
        }
        else
        {
            Console.WriteLine($"Not enough money! {notenoughMoney:F2} lv needed.");
        }
    }
}
}
```
3. Time + 15 Minutes
Tags: csharp, softuni, conditionalstatements, exercise
Published: 2023-01-20 23:19:20

```cs
using System;

namespace Time_15Minutes
{
internal class Program
{
    static void Main(string[] args)
    {
        int myHours = int.Parse(Console.ReadLine());
        int myMinutes = int.Parse(Console.ReadLine());

        myMinutes += 15;

        if (myMinutes >= 60)
        {
            myHours += 1;
            myMinutes %= 60;
        }

        if (myHours >= 24)
        {
            myHours = 0;
        }

        if (myMinutes < 10)
        {
            Console.WriteLine($"{myHours}:0{myMinutes}");
        }
        else
        {
            Console.WriteLine($"{myHours}:{myMinutes}");
        }
    }
}
}
```
2. Bonus Score
Tags: csharp, softuni, conditionalstatements, exercise
Published: 2023-01-20 23:18:38

```cs
using System;

namespace BonusScore
{
internal class Program
{
    static void Main(string[] args)
    {
        int startupNumber = int.Parse(Console.ReadLine());

        double bonus = 0.0;

        if (startupNumber <= 100)
        {
            bonus = 5;
        }
        else if (startupNumber > 1000)
        {
            bonus = startupNumber * 0.1;
        }
        else
        {
            bonus = startupNumber * 0.2;
        }

        if (startupNumber % 2 == 0)
        {
            bonus += 1;
        }
        else if (startupNumber % 10 == 5)
        {
            bonus += 2;
        }

        Console.WriteLine(bonus);
        Console.WriteLine(startupNumber + bonus);
    }
}
}
```
1. Sum Seconds
Tags: csharp, softuni, conditionalstatements, exercise
Published: 2023-01-20 23:17:59

```cs
using System;

namespace Sum_Seconds
{
internal class Program
{
    static void Main(string[] args)
    {
        int firstTime = int.Parse(Console.ReadLine());
        int secondTime = int.Parse(Console.ReadLine());
        int thirdTime = int.Parse(Console.ReadLine());

        int totalTime = firstTime + secondTime + thirdTime;

        int minutes = totalTime / 60;
        int seconds = totalTime % 60;

        if (seconds < 10)
        {
            Console.WriteLine($"{minutes}:0{seconds}");
        }
        else
        {
            Console.WriteLine($"{minutes}:{seconds}");
        }
    }
}
}
```
7. Area of Figures
Tags: csharp, softuni, conditionalstatements, lab
Published: 2023-01-20 23:17:14

```cs
using System;

namespace Area_of_Figures
{
internal class Program
{
    static void Main(string[] args)
    {
        string figureType = Console.ReadLine();

        if (figureType == "square")
        {
            double side = double.Parse(Console.ReadLine());
            double result = side * side;
            Console.WriteLine($"{result:F3}");
        }
        else if (figureType == "rectangle")
        {
            double length = double.Parse(Console.ReadLine());
            double width = double.Parse(Console.ReadLine());

            double result = length * width;
            Console.WriteLine($"{result:F3}");
        }
        else if (figureType == "circle")
        {
            double radius = double.Parse(Console.ReadLine());

            double result = radius * radius * Math.PI;
            Console.WriteLine($"{result:F3}");
        }
        else if (figureType == "triangle")
        {
            double bottom = double.Parse(Console.ReadLine());
            double height = double.Parse(Console.ReadLine());

            double result = (bottom * height) / 2;
            Console.WriteLine($"{result:F3}");
        }
    }
}
}
```
6. Speed Info
Tags: csharp, softuni, conditionalstatements, lab
Published: 2023-01-20 23:16:37

```cs
using System;

namespace Speed_Info
{
internal class Program
{
    static void Main(string[] args)
    {
        double num = double.Parse(Console.ReadLine());

        if (num <= 10)
        {
            Console.WriteLine("slow");
        }
        else if (num > 10 && num <= 50)
        {
            Console.WriteLine("average");
        }
        else if (num > 50 && num <= 150)
        {
            Console.WriteLine("fast");
        }
        else if (num > 150 && num <= 1000)
        {
            Console.WriteLine("ultra fast");
        }
        else if (num > 1000)
        {
            Console.WriteLine("extremely fast");
        }
    }
}
}
```
5. Nums 100 To 200
Tags: csharp, softuni, conditionalstatements, lab
Published: 2023-01-20 23:15:00

```cs
using System;

namespace Nums_100_to_200
{
internal class Program
{
    static void Main(string[] args)
    {
        int num = int.Parse(Console.ReadLine());

        if (num < 100)
        {
            Console.WriteLine("Less than 100");
        }
        else if (num >= 100 && num <= 200)
        {
            Console.WriteLine("Between 100 and 200");
        }
        else if (num >= 200)
        {
            Console.WriteLine("Greater than 200");
        }
    }
}
}
```
4. Password Guess
Tags: csharp, softuni, conditionalstatements, lab
Published: 2023-01-20 23:14:15

```cs
using System;

namespace Password_Guess
{
internal class Program
{
    static void Main(string[] args)
    {
        string password = Console.ReadLine();

        if (password == "s3cr3t!P@ssw0rd")
        {
            Console.WriteLine("Welcome");
        }
        else
        {
            Console.WriteLine("Wrong password!");
        }
    }
}
}
```
3. Even Or Odd
Tags: csharp, softuni, conditionalstatements, lab
Published: 2023-01-20 23:13:41

```cs
using System;

namespace EvenOrOdd
{
internal class Program
{
    static void Main(string[] args)
    {
        int number = int.Parse(Console.ReadLine());

        if (number % 2 == 0)
        {
            Console.WriteLine("even");
        }
        else
        {
            Console.WriteLine("odd");
        }
    }
}
}
```
2. Greater Number
Tags: csharp, softuni, conditionalstatements, lab
Published: 2023-01-20 23:13:02

```cs
using System;

namespace GreaterNumber
{
internal class Program
{
    static void Main(string[] args)
    {
        int num1 = int.Parse(Console.ReadLine());
        int num2 = int.Parse(Console.ReadLine());

        if (num1 > num2)
        {
            Console.WriteLine(num1);
        }
        else
        {
            Console.WriteLine(num2);
        }
    }
}
}
```
1. Excellent Result
Tags: csharp, softuni, conditionalstatetements, lab
Published: 2023-01-20 23:12:23

```cs
using System;

namespace Excellent_Result
{
internal class Program
{
    static void Main(string[] args)
    {
        double evaluation = double.Parse(Console.ReadLine());

        double honor = 5.50;

        if (evaluation >= honor)
        {
            Console.WriteLine("Excellent!");
        }
    }
}
}
```
9. Fish Tank
Tags: csharp, softuni, firststepsincoding, exercise
Published: 2023-01-20 23:11:13

```cs
using System;

namespace FishTank
{
internal class Program
{
    static void Main(string[] args)
    {
        int length = int.Parse(Console.ReadLine());
        int width = int.Parse(Console.ReadLine());
        int height = int.Parse(Console.ReadLine());
        double procent = double.Parse(Console.ReadLine());

        double aquariumVolume = length * width * height;
        double volumeInLiters = aquariumVolume * 0.001;
        double filledSpace = procent * 0.01;
        double neededSpace = volumeInLiters * (1 - filledSpace);

        Console.WriteLine(neededSpace);
    }
}
}
```
8. Basketball Equipment
Tags: csharp, softuni, firststepsincoding, exercise
Published: 2023-01-20 23:10:40

```cs
using System;

namespace BasketballEquipment
{
internal class Program
{
    static void Main(string[] args)
    {
        int basketballYearSub = int.Parse(Console.ReadLine());

        double basketballSneakers = basketballYearSub - (basketballYearSub * 0.4);
        double basketballOutfit = basketballSneakers - (basketballSneakers * 0.2);
        double basketBall = basketballOutfit / 4 ;
        double basketballAccessories = basketBall / 5;
        double totalEquipmentPrice = basketballYearSub + basketballSneakers + basketballOutfit + basketBall + basketballAccessories;

        Console.WriteLine(totalEquipmentPrice);
    }
}
}
```
7. Food Delivery
Tags: csharp, softuni, firststepsincoding, exercise
Published: 2023-01-20 23:09:41

```cs
using System;

namespace FoodDelivery
{
internal class Program
{
    static void Main(string[] args)
    {
        int chickenMenuAmount = int.Parse(Console.ReadLine());
        int fishMenuAmount = int.Parse(Console.ReadLine());
        int vegeterianMenuAmount = int.Parse(Console.ReadLine());

        double chickenMenu = 10.35;
        double fishMenu = 12.40;
        double vegeterianMenu = 8.15;

        double chickenPrice = chickenMenuAmount * chickenMenu;
        double fishPrice = fishMenuAmount * fishMenu;
        double vegeterianPrice = vegeterianMenuAmount * vegeterianMenu;

        double totalMenuPrice = chickenPrice + fishPrice + vegeterianPrice;

        double desertPrice = 0.2 * totalMenuPrice;
        double deliveryPrice = 2.50;

        double totalPrice = totalMenuPrice + desertPrice + deliveryPrice;
        Console.WriteLine(totalPrice);
    }
}
}
```
6. Repainting
Tags: csharp, softuni, firststepsincoding, exercise
Published: 2023-01-20 23:08:49

```cs
using System;
using System.Xml.Schema;

namespace Repainting
{
internal class Program
{
    static void Main(string[] args)
    {
         int neededAmountNylon = int.Parse(Console.ReadLine());
         int neededAmountPaint = int.Parse(Console.ReadLine());
         int thinnerAmount = int.Parse(Console.ReadLine());
         int Hours = int.Parse(Console.ReadLine());

        double protectiveNylon = 1.50;
        double paint = 14.50;
        double thinnerForPaint = 5.00;

        double moreAddedNylon = 2;
        double moreAddedPaint = neededAmountPaint * 0.1;

        double nylonPrice = (neededAmountNylon + moreAddedNylon) * protectiveNylon;
        double paintPrice = (neededAmountPaint + moreAddedPaint) * paint;
        double thinnerPrice = thinnerAmount * thinnerForPaint;
        double bagPrice = 0.40;

        double totalMaterialPrice = nylonPrice + paintPrice + thinnerPrice + bagPrice;
        double craftsmansPayment = (totalMaterialPrice * 0.3) * Hours;
        double totalPrice = totalMaterialPrice + craftsmansPayment;
        Console.WriteLine(totalPrice);

    }
}
}
```