1.

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        {
            int minDef = 8;
            int maxDef = 9;
            int minBlockAmount_01 = 42;
            int minBlockAmount_02 = 50;
            int maxBlockAmount_01 = 53;
            int maxBlockAmount_02 = 74;
            int minVitality = 626;
            int maxVitality = 750; 
            int propertiesNum = 3;
            int percentChance = 11;
            int percentBlock = 52;
            int minPercent = 45; 
            int maxPercent = 60;
            float minChanceToBlock = 10.0f;
            float maxChanceToBlock = 20.0f;

            string nameShield = "Coven's Crtiterion";
            string itemGrade = "Legendary Shield";
            string itemCategory = "Armor";
            string ctb = "Chance to Block";
            string ba = "Block Amount";


            Console.WriteLine(nameShield);
            Console.WriteLine(itemGrade);
            Console.WriteLine("");
            Console.WriteLine("{0} - {1} ", minDef, maxDef);
            Console.WriteLine(itemCategory);
            Console.WriteLine("");
            Console.Write("+[{0:0.0} - {1:0.1}]% ", minChanceToBlock, maxChanceToBlock);
            Console.WriteLine(ctb);
            Console.Write("[{0} - {1}]-[{2} - {3}] ", minBlockAmount_01, maxBlockAmount_01, minBlockAmount_02, maxBlockAmount_02);
            Console.WriteLine(ba);
            Console.WriteLine("");
            Console.WriteLine("Primary");
            Console.WriteLine("\t[{0} - {1}] Vitality", minVitality, maxVitality);
            Console.Write("\t+{0}%", percentChance);
            Console.WriteLine(ctb);
            Console.WriteLine("");
            Console.WriteLine("Secondary");
            Console.WriteLine("You take {0}% less damage from blocked attacks.[{1} - {2}]%", percentBlock, minPercent, maxPercent);
            Console.WriteLine("");
            Console.WriteLine("+{0} Random Magic Properties", propertiesNum);
            Console.WriteLine("");
            Console.WriteLine("Account Bound");
        }
    }
}

 

 

 

 

2.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _221230_Homework
{
    class Program
    {
        static void Main(string[] args)
        {
            string bootsName = "Lut Socks";
            string itemGrade = "Legendary Boots";
            string itemCategory = "Armor";
            string jobName = "Barbarian";

            int minItemDef = 44;
            int maxItemDef = 57;
            int propertiesValue = 3;
            int randomPropertiesValue = 4;
            int minProperties = 416;
            int maxProperties = 500;

            Console.WriteLine(bootsName);
            Console.WriteLine(itemGrade);
            Console.WriteLine("{0} - {1}", minItemDef, maxItemDef);
            Console.WriteLine("{0}\n", itemCategory);
            Console.WriteLine("Secondary");
            Console.WriteLine("Leap can be cast up to three times within 2 seconds before the cooldown begins. ({0} Only)\n", jobName);
            Console.WriteLine("One of {0} Magic Properties (varies)", propertiesValue);
            Console.WriteLine("\t+[{0} - {1}] Dexterity", minProperties, maxProperties);
            Console.WriteLine("\t+[{0} - {1}] Intelligence", minProperties, maxProperties);
            Console.WriteLine("\t+[{0} - {1}] Strength\n", minProperties, maxProperties);
            Console.WriteLine("+{0} Random Magic Properties\n", randomPropertiesValue);
            Console.WriteLine("Account Bound");
        }
    }
}

 

 

3.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _221230_Homework
{
    class Program
    {
        static void Main(string[] args)
        {
            string gemName = "WREATH OF LIGHTNING";
            string itemGrade = "Legendary Gem";

            int gainPercent = 15;
            int lightningSecond = 3;
            string weaponDamage = "1,250.0";

            Console.WriteLine(gemName);
            Console.WriteLine("{0}\n", itemGrade);
            Console.WriteLine("Secondary");
            Console.WriteLine(" {0}% chance on hit to gain a Wreath of Lightning, dealing\n {1:0.0}% weapon damage as Lightning every second to\n nearby enemies for {2} seconds. {3:0.0}%\n", gainPercent, weaponDamage, lightningSecond, weaponDamage);
            Console.WriteLine("Account Bound");
            Console.WriteLine("Unique Equipped");
        }
    }
}

 

 

4.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _221230_Homework
{
    class Program
    {
        static void Main(string[] args)
        {
            string axeName = "Genzaniku";
            string itemGrade = "Legendary Axe";

            float damagePerSecond = 10.4f;
            int minItemDamage = 6;
            int maxItemDamage = 10;
            float attacksPerSecond = 1.3f;
            int propertiesValue = 7;
            int randomPropertiesValue = 4;
            int lowMinProperties = 981;
            int lowMaxProperties = 1199;
            int upperMinProperties = 1175;
            int upperMaxProperties = 1490;

            Console.WriteLine(axeName);
            Console.WriteLine("{0}\n", itemGrade);
            Console.WriteLine(damagePerSecond);
            Console.WriteLine("Damage Per Second\n");
            Console.WriteLine("{0} - {1} Damage", minItemDamage, maxItemDamage);
            Console.WriteLine("{0} Attacks per Second\n", attacksPerSecond);
            Console.WriteLine("Secondary");
            Console.WriteLine("Chance to summon a ghostly Fallen Champion when attacking.\n");
            Console.WriteLine("One of {0} Magic Properties (varies)", propertiesValue);
            Console.WriteLine("\t+[{0} - {1}]-[{2} - {3}] Poison Damage", lowMinProperties, lowMaxProperties, upperMinProperties, upperMaxProperties);
            Console.WriteLine("\t+[{0} - {1}]-[{2} - {3}] Cold Damage", lowMinProperties, lowMaxProperties, upperMinProperties, upperMaxProperties);
            Console.WriteLine("\t+[{0} - {1}]-[{2} - {3}] Lightning Damage", lowMinProperties, lowMaxProperties, upperMinProperties, upperMaxProperties);
            Console.WriteLine("\t+[{0} - {1}]-[{2} - {3}] Damage Damage", lowMinProperties, lowMaxProperties, upperMinProperties, upperMaxProperties);
            Console.WriteLine("\t+[{0} - {1}]-[{2} - {3}] Holy Damage", lowMinProperties, lowMaxProperties, upperMinProperties, upperMaxProperties);
            Console.WriteLine("\t+[{0} - {1}]-[{2} - {3}] Arcane Damage", lowMinProperties, lowMaxProperties, upperMinProperties, upperMaxProperties);
            Console.WriteLine("\t+[{0} - {1}]-[{2} - {3}] Fire Damage\n", lowMinProperties, lowMaxProperties, upperMinProperties, upperMaxProperties);
            Console.WriteLine("+{0} Random Magic Properties\n", randomPropertiesValue);
            Console.WriteLine("Account Bound");
            Console.WriteLine("Unique Equipped");
        }
    }
}

 

 

5.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _221230_Homework
{
    class Program
    {
        static void Main(string[] args)
        {
            string potionName = "BOTTOMLESS POTION OF\nTHE DIAMOND";
            string itemGrade = "Legendary Potion";

            int restorePercent = 60;
            int requiresLevel = 61;

            Console.WriteLine(potionName);
            Console.WriteLine("{0}\n", itemGrade);
            Console.WriteLine("Requires level {0}", requiresLevel);
            Console.WriteLine("Instantly restores {0}% Life\n", restorePercent);
            Console.WriteLine("Account Bound");
        }
    }
}

'C# > 수업 과제' 카테고리의 다른 글

메서드 연습4  (0) 2023.01.03
메서드 연습3  (0) 2023.01.03
메서드 연습2  (0) 2023.01.03
매서드 연습1  (0) 2023.01.03
221230_1주차_과제_02  (0) 2022.12.30

+ Recent posts