简单的计费项目 [英] Simple Billing Project

查看:58
本文介绍了简单的计费项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,

Hello All,

我正在大学进行C#编程的介绍,但是教授没有以这样的方式解释这些材料。基本上,我们有这个项目:

I am in an intro to C# programming at a university, but the professor doesn't explain the material in such a way that it clicks for me. Basically, we have this project:


使用消耗的Goodness单位数来确定每个单位的费率,符合以下指南:

Use the number of Goodness units consumed to determine the rate per unit per the following guidelines:


ð       
少于200个单位的使用 - $ 2.50 /单位

ð        Usage of less than 200 units - $2.50/unit


ð       
200到399单位之间的用法 - $ 3.00 /单位

ð        Usage between 200 and 399 units - $3.00/unit


ð       
400到599单位之间的用法 - $ 3.25 /单位

ð        Usage between 400 and 599 units - $3.25/unit


ð       
使用超过600个单位 - $ 3.50 /单位

ð        Usage of greater than 600 units - $3.50/unit


计算给定单位消耗的总账单和每单位适用的费率。显示每个以下输出格式要求的帐单摘要和总费用。"

Calculate the total bill given units consumed and applicable rate per unit. Display a billing summary and total charge per below output format requirements."



老实说,我不知道从哪里开始。它将于今晚到期,但我宁愿把它弄清楚,并将其转换为迟到并获得扣分。我不是要求别人为我编写代码,而是要向我推进正确的方向。他还希望我们使用十进制
作为欠款,我不知道如何将int改为十进制! 

I honestly have no clue where to begin. It is due tonight, but I'd rather get it correct and turn it in late and receive deducted points. I'm not asking someone to write the code for me, but to nudge me in the right direction. He also wants us to use decimal for the amount owed, and I don't know how I can change int into decimal! 



谢谢你的时间!

Thanks you for your time!



推荐答案

首先,如果你正在追求软件作为职业,我会建议你舒服与同伴合作。你有很好的机会通过在大学里与人学习。建立联系!我也知道大多数,如果不是
所有大学都有博客和Q / A网站的课程,你的同学可能会问类似的问题。如果这只是一个你正在上课的课程,那么你可能只是试图将其解决。




这是一个控制台应用吗?你需要一个WinForms GUI吗?一个网络应用?您似乎想要问候AR用户并要求他们提供客户ID。然后提示他们输入"善良"的数字。该客户消费的单位。然后你可以根据客户消耗的数量乘以
这个数字单位价格,并可能显示该数据。

根据您的要求,您可以通过几十种方式实现这一目标,使用许多不同的控制流,数据类型和样式。通常很多课程都希望你使用你在课堂上学到的东西来完成任务,但只有你知道那些
是什么。
First of all, if you are pursuing software as a career, I would suggest you get comfortable with colaborating with your fellow peers. You have a great opportunity to learn with people by being at a university. Make connections! I also know most if not all universities have blog and Q/A sites for their courses where your classmates are probably asking similar questions. If this is just a class your taking then you might just be trying to get it over with.

Is this a console app? Do you need a WinForms GUI? A web app? It seems like you want to greet the AR user and ask them to provide a customer Id. Then prompt them to enter the number of "goodness" units consumed by that customer. Then you can multiply that number by the Unit Price based on the qty consumed by the customer and probably display that data.
Depending on your requirements, you can accomplish this in dozens of ways, using many different control flows, data types, and styles. Usually many courses want you to use things you've learned in class to accomplish the tasks, but only you know what those things are.


这篇关于简单的计费项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆