问题描述
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!
推荐答案
这篇关于简单的计费项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!