人品计算器

// Copyright (c) 2014软件技术1班
// All rights reserved.
// 作    者:A02
// 完成日期:2014年 11 月 26 日
// 版 本 号:v1.0
//
// 问题描述:创建一个简单的人品计算器

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

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string Name;
            int score = 0;
            Console.Write("请输入名字:");
            Name = Convert.ToString(Console.ReadLine());            
            foreach (char item in Name)
            {     
                score += (int)item;            
            }
            score = score % 100;
            Console.WriteLine("得分:{0}", score);
            Console.Write("评价:");
            if (score >= 0 && score < 20) Console.WriteLine("ROLL点不过10的渣渣");
            else if (score >= 20 && score < 40) Console.WriteLine("你肯定经常黑装备吧");
            else if (score >= 40 && score < 60) Console.WriteLine("你也就只能默默的当个打工仔了");
            else if (score >= 60 && score < 80) Console.WriteLine("G团小红手");
            else if (score >= 80 && score < 100) Console.WriteLine("超级红手让我膜拜你吧");
            Console.Read();
        }
    }
}


输出

总结:

1:通过本作业我学会了如何查看unicode编码

2:解决了如何使用unicode编码的问题,收获了经验,增长了自信

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值