有人可以帮我完成这项作业吗? [英] Can someone please help me with this assignment?

查看:78
本文介绍了有人可以帮我完成这项作业吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I got everything done and working for this assignment, the only thing I need to help on is calculating the total from the shopping cart. Does anyone know how to do this?

列表框 –该程序中有3个列表框

Listboxes – There are 3 listboxes in this program

按钮 - 有两个按钮,添加到购物车,计算总销售额

Buttons - There are two buttons, Add to Shopping Cart, Calculate Total Sale

标签 - 其余控件是标签

Labels - The rest of the controls are labels

填充乐队列表框– 至少在波段列表框中填充您最喜欢的4个乐队.

Populate Band listbox – Populate the band listbox with at least 4 of your favorite bands.

计划乐队列表框 –对波段"列表框进行编程,以便当您单击特定的波段时,它将在CD列表框中填充该波段中的至少3张CD.如果单击其他乐队,则应清除当前CD,并用新乐队的CD填充CD列表框. (10 点)

Program Band Listbox – Program the Band listbox so when you click on a specific band it will populate the CD listbox with at least 3 CDs from that band. If you click on a different band it should clear the current CDs and populate the CD listbox with CDs from the new band. (10 Points)

添加到购物车按钮– 对添加到购物车"按钮进行编程,以便它会获取当前选择的CD,并在购物车列表框中显示该CD.用户应该能够 选择所需数量的CD. (20分)

Add To Cart Button – Program the Add To Cart button so it will take the currently selected CD and display that CD in the Shopping cart listbox. The user should be able to select as many CDs as they want. (20 Points)

计算总销售按钮 –设置计算总销售额"按钮,以便它计算购物车"列表框中所有CD的总数,并在适当的标签中显示总数.将其格式化为货币2小数. (20分)

Calculate Total Sale Button – Program the Calculate Total Sale button so it calculates the total of all the CDs in the Shopping Cart listbox and displays the total in the appropriate label. Format it to currency 2 decimal. (20 Points)

推荐答案

您需要显示您已经拥有的代码.为了帮助您,我们需要看看有什么您使用过的结构/变量.

You need to show the code you already have. To help you, we need to see what  structures/variable you have used.


这篇关于有人可以帮我完成这项作业吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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