아이템 1

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

namespace Study01
{
    internal class Program
    {
        static void Main(string[] args)
        {   
            // 아이템 이름 VEIL OF STEEL
            string itemName = "VEIL OF STEEL";
            // 등급 Magic
            string itemGrade = "Magic";
            // 부위(카테고리) Helm
            string category = "Helm";
            // 최소 방어력 21 
            int minArmor = 21;
            // 최대 방어력 24
            int maxArmor = 24;
            // 착용 부위 head
            string part = "Head";
            // 랜덤 속성 개수 3
            int randomPropertiesAmount = 3;

            Console.WriteLine(itemName);
            Console.WriteLine(itemGrade);
            Console.WriteLine(category);
            Console.WriteLine("{0} - {1}", minArmor, maxArmor);
            Console.WriteLine(part);
            Console.WriteLine("+{0} Random Magic Properties", randomPropertiesAmount);

        }   
    }
}

아이템 1 출력결과

 


아이템 2

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

namespace Study01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            // 아이템 이름 APPRENTICE HIDE TUNIC
            string itemName = "APPRENTICE HIDE TUNIC";
            // 등급 Magic
            string itemGrade = "Magic";
            // 부위(카테고리) Chest Armor
            string category = "Chest Armor";
            // 최소 방어력 24 
            int minArmor = 24;
            // 최대 방어력 27
            int maxArmor = 27;
            // 착용 부위 head
            string part = "Torso";
            // 랜덤 속성 개수 2
            int randomPropertiesAmount = 2;

            Console.WriteLine(itemName);
            Console.WriteLine(itemGrade);
            Console.WriteLine(category);
            Console.WriteLine("{0} - {1}", minArmor, maxArmor);
            Console.WriteLine(part);
            Console.WriteLine("+{0} Random Magic Properties", randomPropertiesAmount);

        }
    }
}

아이템 2 출력결과

 


아이템 3

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

namespace Study01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string itemName = "CROSSBOW OF CORVUS";
            string category = "Crossbow";
            float damagePerSecond = 9.4f;
            int minDamage = 8;
            int maxDamage = 9;
            string part = "2-Hand";
            float attacksPerSecond = 1.10f;

            Console.WriteLine(itemName);
            Console.WriteLine(category);
            Console.WriteLine("{0} Damage Per Second", damagePerSecond);
            Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
            Console.WriteLine(part);
            Console.WriteLine("+{0:0.00} Attacks per Second", attacksPerSecond);
        }
    }
}

아이템 3 출력결과


아이템 4

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

namespace Study01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string itemName = "THE BUTCHER'S CLEAVER";
            string itemGrade = "Magic";
            string category = "Axe";
            float damagePerSecond = 3.2f;
            int minDamage = 2;
            int maxDamage = 3;
            string part = "1-Hand";
            float attacksPerSecond = 1.30f;
            int randomPropertiesAmount = 3;

            Console.WriteLine(itemName);
            Console.WriteLine(itemGrade);
            Console.WriteLine(category);
            Console.WriteLine("{0} Damage Per Second", damagePerSecond);
            Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
            Console.WriteLine(part);
            Console.WriteLine("+{0:0.00} Attacks per Second", attacksPerSecond);
            Console.WriteLine("+{0} Random Magic Properties", randomPropertiesAmount);
        }
    }
}

아이템 4 출력결과


아이템 5

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

namespace Study01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string itemName = "<WIRT'S LEG>";
            string itemGrade = "Legendary";
            string category = "Mace";
            float damagePerSecond = 5.4f;
            int minDamage = 3;
            int maxDamage = 6;
            string part = "1-Hand";
            float attacksPerSecond = 1.20f;

            // 글씨 색상 -> 황토색
            Console.ForegroundColor = ConsoleColor.DarkYellow;
            Console.WriteLine(itemName);

            // 색상 초기화 -> 하얀색(기본)
            Console.ResetColor();
            
            Console.WriteLine(itemGrade);
            Console.WriteLine(category);
            Console.WriteLine("{0} Damage Per Second", damagePerSecond);
            Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
            Console.WriteLine(part);
            Console.WriteLine("{0:0.00} Attacks per Second", attacksPerSecond);
        }
    }
}

아이템 5 출력결과


아이템 6

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

namespace Study01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string itemName = "<BOTTOMLESS POTION OF THE TOWER>";
            string itemGrade = "Legendary";
            string category = "Potion";
            int lifeRecovery = 60;

            // 글씨 색상 -> 황토색
            Console.ForegroundColor = ConsoleColor.DarkYellow;
            Console.WriteLine(itemName);

            // 색상 초기화 -> 하얀색(기본)
            Console.ResetColor();
            
            Console.WriteLine(itemGrade);
            Console.WriteLine(category);
            Console.WriteLine("Instantly restores {0}% Life", lifeRecovery);
        }
    }
}

아이템 6 출력결과


아이템 7

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

namespace Study01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string itemName = "<FLETCHER'S PRIDE>";
            string itemGrade = "Legendary";
            string category = "Quiver";
            string part = "Off-Hand";
            float minAttackSpeed = 15.0f;
            float maxAttackSpeed = 20.0f;
            float minReducedCost = 5.0f;
            float maxReducedCost = 8.0f;
            int minDexterity = 626;
            int maxDexterity = 750;
            int randomPropertiesAmount = 4;


            Console.ForegroundColor = ConsoleColor.DarkYellow;
            Console.WriteLine(itemName);

            Console.ResetColor();

            Console.WriteLine(itemGrade);
            Console.WriteLine(category);
            Console.WriteLine(part);

            Console.ForegroundColor = ConsoleColor.DarkMagenta;
            Console.WriteLine("Attack Speed Increased by [{0:0.0} - {1:0.0}]%", minAttackSpeed, maxAttackSpeed);
            Console.WriteLine("Reduces all resource costs by [{0:0.0} - {1:0.0}]%", minReducedCost, maxReducedCost);
            Console.WriteLine("+[{0} - {1}] Dexterity", minDexterity, maxDexterity);
            Console.WriteLine("+{0} Random Magic Properties", randomPropertiesAmount);
            Console.ResetColor();
        }
    }
}

아이템 7 출력결과


아이템 8

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

namespace Study01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string itemName = "<KING'S SWORD OF HASTE>";
            string itemGrade = "Magic";
            string category = "Sword";
            float damagePerSecond = 4.2f;
            int minDamage = 2;
            int maxDamage = 4;
            string part = "1-Hand";
            float attacksPerSecond = 1.40f;
            int randomPropertiesAmount = 3;

            Console.WriteLine(itemName);
            Console.WriteLine(itemGrade);
            Console.WriteLine(category);
            Console.WriteLine("{0} Damage Per Second", damagePerSecond);
            Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
            Console.WriteLine(part);
            Console.WriteLine("+{0:0.00} Attacks per Second", attacksPerSecond);
            Console.WriteLine("+{0} Random Magic Properties", randomPropertiesAmount);
        }
    }
}

아이템 8 출력결과


아이템 9

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

namespace Study01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string itemName = "<STEFFON'S HEAVY LANCE>";
            string itemGrade = "None";
            string category = "Spear";
            float damagePerSecond = 7.2f;
            int minDamage = 5;
            int maxDamage = 7;
            string part = "1-Hand";
            float attacksPerSecond = 1.20f;

            Console.WriteLine(itemName);
            Console.WriteLine(itemGrade);
            Console.WriteLine(category);
            Console.WriteLine("{0} Damage Per Second", damagePerSecond);
            Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
            Console.WriteLine(part);
            Console.WriteLine("+{0:0.00} Attacks per Second", attacksPerSecond);
        }
    }
}

 

아이템 9 출력결과


아이템 10

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

namespace Study01
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string itemName = "<TAIJI>";
            string itemGrade = "None";
            string category = "Daibo";
            float damagePerSecond = 88.6f;
            int minDamage = 57;
            int maxDamage = 104;
            string part = "2-Hand";
            string exclusiveCharacter = "Monk";
            float attacksPerSecond = 1.10f;

            Console.WriteLine(itemName);
            Console.WriteLine(itemGrade);
            Console.WriteLine(category);
            Console.WriteLine("{0} Damage Per Second", damagePerSecond);
            Console.WriteLine("{0}-{1} Damage", minDamage, maxDamage);
            Console.WriteLine(part);
            Console.WriteLine(exclusiveCharacter);
            Console.WriteLine("+{0:0.00} Attacks per Second", attacksPerSecond);
        }
    }
}

아이템 10 출력결과

 

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

Json 과제 - 데이터 배열로 저장하기  (0) 2022.06.19
for문 연습 문제  (0) 2022.06.10

+ Recent posts