Find Jobs
Hire Freelancers

Simple C# application with do while statements

$10-30 USD

已完成
已发布超过 5 年前

$10-30 USD

货到付款
A large company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells $5,000 worth of merchandise in a week receives $200 plus 9% of $5,000, or a total of $650. You’ve been supplied with a list of the items sold by each salesperson. The values of these items are as follows: Item Value 1 239.99 2 129.75 3 99.95 4 350.89 Develop a C# application that inputs one salesperson’s items sold for the last week, then calculates and displays that salesperson’s total sales. There’s no limit to the number of items that can be sold by a salesperson. You do not have to implement this with classes and objects. Technical Requirements: Prompt the user to enter the salesperson’s name, and store this name in a variable. Prompt the user to enter an item number and a quantity sold of that item. Store these two entries in two separate variables called “intItem” and “intQuantity”. Using a DO-WHILE control structure, loop until the user enters -1 for the item number. Calculate the amount of sales for an item and store the result in a variable called dblItemSales. After the user enters an item number and a quantity, print to the screen: the salesperson’s name “has sold “ [intQuantity] “of item # [intItem]. Accumulate the total sales in a variable called dblTotalSales by using a SWITCH statement to select the correct value to be multiplied by the quantity sold and adding this result to a running total, which is stored in the variable dblTotalSales. If the user enters a number other than 1, 2, 3, or 4, display the message “Invalid Entry” and re-prompt the user to enter an Item Number. Make sure you do not perform any calculations or prompt the user to enter a quantity if the item number is incorrect. After accumulating the total sales for an employee (that is, after the user has entered a -1 to quit), print to the screen Salesperson [Salesperson’s name] sold a total of [ total sales ].
项目 ID: 17696914

关于此项目

3提案
远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
hi sir, i have read the entire requirements for getting the salesperson name, his items sold and quantity and to display the total item and commision etc, will do in few hours, thanks
$15 USD 在1天之内
5.0 (62条评论)
5.0
5.0
3威客以平均价$27 USD来参与此工作竞价
用户头像
Greetings, I am interested in doing this job. I am BS-CS graduate and knows C# programming as well, because of which I can do this task with ease. Have worked on Visual Studio as well. Please do give me a chance to prove myself. Hopefully we will discuss further details in PM.
$40 USD 在2天之内
4.9 (3条评论)
2.9
2.9

关于客户

UNITED STATES的国旗
Elk River, United States
0.0
0
付款方式已验证
会员自4月 4, 2017起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。