国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

ISOM 3029 程序代做 Using C++

時間:2023-11-22  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


ISOM 3029 - Computer Programming Using C++
2023/2024 (Fall Semester)
Assignment 1
Due date: Nov. 20, 2023 (Session 002) & Nov. 21, 2023 (Session 001) in class
Instructions:
 Read the Assignment Requirements posted in the UMMoodle before attempting to solve the
following problems with C++ programs.
 Both the hardcopy and softcopy of your assignment should be submitted on time. All
programs (.cpp files) are to be compressed and uploaded to the UMMoodle under the
“Submit Assignment 1” button. The compressed file should be named with your student
number such as “ba12345_Ass1.zip”.
Question 1: Lottery Program (50%)
Write a C++ program that outputs a greeting message at the beginning, then generates 6 positive
random digits with different values ranging from 1 to 9 for a lottery game. The program prompts the
user to input 6 positive digits and then checks if there is an exact match of all the 6 numbers. It will
output different awards for different matches according to the following rules: Win $5000 for 6 correct
matches, $3000 for 5 correct matches, and $1000 for 4 correct matches. Your program should allow
the user to choose to continue or not and will output a message to end the program.
(Bonus part: Try to include some error-checking as shown below.)
Sample Input & Output:
================================
Welcome to the Lottery Program!
================================
Please enter 6 different positive digits: 1 6 2 4 **
The 6 drawn numbers are: 3 4 2 6 1 7
You have 6 correct matches! You win $5000!
Would you like to continue (Y for Yes, N for No)? Y
++++++++++++++++++++++++++++++++++++++++++++++++++++
Please enter 6 different positive digits: 5 1 2 7 4 3
The 6 drawn numbers are: 5 3 2 6 1 7
P.2
You have 5 correct matches! You win $3000!
Would you like to continue (Y for Yes, N for No)? Y
++++++++++++++++++++++++++++++++++++++++++++++++++++
Please enter 6 different positive digits: 1 9 2 8 **
The 6 drawn numbers are: 8 9 4 6 1 7
You have 4 correct matches! You win $1000!
Would you like to continue (Y for Yes, N for No)? Y
++++++++++++++++++++++++++++++++++++++++++++++++++++
Please enter 6 different positive digits: 1 6 8 9 5 3
The 6 drawn numbers are: 3 4 2 6 1 7
You have 3 correct matches! Sorry, no prize for you!
Would you like to continue (Y for Yes, N for No)? Y
++++++++++++++++++++++++++++++++++++++++++++++++++++
Please enter 6 different positive digits: 1 2 3 -5 6 9
Your input is invalid! Please try again!
Would you like to continue (Y for Yes, N for No)? N
++++++++++++++++++++++++++++++++++++++++++++++++++++
Please enter 6 different positive digits: 1 2 3 6 6 9
Your input is invalid! Please try again!
Would you like to continue (Y for Yes, N for No)? N
++++++++++++++++++++++++++++++++++++++++++++++++++++
Thank you very much!
Question 2: Sales System (50%)
A sportswear shop at a certain outlet launches promotional sales during the New Year. It advertises
that all sports-shoes are 10% off. If the customer buys 2 pairs (with each pair being above $200), an
additional 10% off will be applied. If the customer buys 3 pairs (with each pair being above $200),
an additional 15% off will be applied. If the customer buys 4 pairs or more (with each pair being
above $200), an additional 20% off will be applied. For sports-shoes below $200, only the original
advertised 10% off will be effective. For example, if the customer buys 2 pairs priced at $300 each,
the price after discount will be $300x2x0.9x0.9=$486 plus sales tax. If the customer buys 2 pairs
priced at $300 each and 1 pair priced at $100, the price after discount will be
$300x2x0.9x0.9+$100x0.9=$576 plus sales tax.
Write a C++ program that will print the total price that the customer should pay, by asking the salesgirl
to input the sales tax (e.g. input 5 for 5%), the number of purchased shoes, and the retail prices of the
P.3
purchased sports-shoes one by one. The program will help to calculate the total price after considering
the sales promotion as advertised and the sales tax. The total price will be rounded to the nearest dollar,
without charging any extra cents (e.g., if the calculated total price is $580.5, the total price being
charged will be $580.00 only). (Bonus part: Try to think of some error-checking for user inputs.)
Sample Input & Output:
===========================
Welcome to the Sales System
===========================
Please enter sales tax in % : 5
Number of purchased shoes : 2
Retail Price for shoes 1 : $300
Retail Price for shoes 2 : $300
-----------------------------------------
Less: Discount applied : $114.00
Total price before tax : $486.00
Total price after tax (5%) : $510.00
-----------------------------------------
Do you wish to continue? (Y/N) Y
===========================
Welcome to the Sales System
===========================
Please enter sales tax in % : 6
Number of purchased shoes : 3
Retail Price for shoes 1 : $299
Retail Price for shoes 2 : $100
Retail Price for shoes 3 : $800
-----------------------------------------
Less: Discount applied : $218.81
Total price before tax : $980.19
Total price after tax (6%) : $1039.00
-----------------------------------------
Do you wish to continue? (Y/N) Y
===========================
Welcome to the Sales System
===========================
Please enter sales tax in % : 5.5
Number of purchased shoes : 4
Retail Price for shoes 1 : $500
Retail Price for shoes 2 : $100
Retail Price for shoes 3 : $699
Retail Price for shoes 4 : $1200
-----------------------------------------
Less: Discount applied : $5**.76
Total price before tax : $1925.24
Total price after tax (5.5%): $2031.00
-----------------------------------------
Do you wish to continue? (Y/N) N
Thank you very much!
請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:EEEN30141代寫、C++語言程序代做
  • 下一篇:CSC1001代做、Python/Java程序設計代寫
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    亚洲二区三区四区| 曰韩不卡视频| 久久亚洲成人精品| 日本久久久精品视频| 国产美女精品久久久| 精品国内产的精品视频在线观看| 亚洲国产婷婷香蕉久久久久久99| 国产在线精品一区二区三区》| 久久久久久亚洲精品不卡 | 国产精品无av码在线观看| 午夜精品理论片| 国产日韩久久| 国产精品日日做人人爱| 奇米影视首页 狠狠色丁香婷婷久久综合 | 国产又黄又大又粗视频| 久久精品福利视频| 欧美午夜小视频| 色777狠狠综合秋免鲁丝| 亚洲xxxx做受欧美| 99精品视频在线看| 一区二区三区四区久久| 国产欧美久久久久| 欧美激情综合色| 国产精品亚洲美女av网站| 欧美日韩999| 国产精品永久在线| 亚洲一区二区三区毛片| av动漫在线免费观看| 中文字幕无码精品亚洲35 | 精品日本一区二区三区| 国产成人精品无码播放| 日韩精品第1页| 日韩视频精品在线| 欧美性在线观看| 久久久精品久久久久| 精品欧美一区免费观看α√| 国产精品日韩欧美| 蜜桃视频在线观看91| 久久久久国产精品免费网站| 91久久久久久久久久久| 日本一区二区视频| 久久精品视频在线播放| 国产中文字幕日韩| 欧美激情网友自拍| 久久这里只有精品8| 青青青免费在线| 国产精品人人妻人人爽人人牛| 激情婷婷综合网| 中文字幕乱码人妻综合二区三区| 不卡影院一区二区| 午夜dv内射一区二区| 久久久久久噜噜噜久久久精品| 欧美性大战久久久久| 欧美成人第一页| www插插插无码免费视频网站| 亚洲一区二区三区四区在线播放| 久久综合一区| 欧美精品无码一区二区三区| 精品国产乱码久久久久久久软件| 91精品国产91久久久久久吃药| 日本10禁啪啪无遮挡免费一区二区| 日韩天堂在线视频| 国产一区二区三区免费不卡| 亚洲欧美日韩国产成人综合一二三区 | 国产不卡一区二区在线播放| 精品日产一区2区三区黄免费 | 久久婷婷人人澡人人喊人人爽| 日本不卡一区二区三区在线观看| 久久精品亚洲国产| 97久久精品人搡人人玩| 日韩欧美精品在线不卡| 久色乳综合思思在线视频| 91精品黄色| 黄色国产小视频| 亚洲精品中文字幕乱码三区不卡| www欧美日韩| 国产精品自拍合集| 日韩免费av片在线观看| 国产999在线观看| 久久久久五月天| 成人综合国产精品| 欧美亚洲精品一区二区| 亚洲国产精品一区在线观看不卡| www.日本久久久久com.| 成人免费福利视频| 欧美动漫一区二区| 午夜精品一区二区三区在线视频| 国产精品污www一区二区三区| 91久久精品国产91性色| 麻豆久久久9性大片| 日本国产高清不卡| 国产99在线播放| 国产福利视频在线播放 | 精品国产aⅴ麻豆| 久久天天东北熟女毛茸茸| 国产视频福利一区| 日韩欧美精品一区二区| 亚洲人成网站在线观看播放| 国产精品久久久久久久久免费看| 91免费看蜜桃| 国产免费xxx| 精品视频在线观看一区| 日韩精品xxxx| 日韩av免费看网站| 欧美激情欧美激情在线五月| 国产精品美女视频网站| 久草精品电影| 久久这里精品国产99丫e6| 高清一区二区三区日本久| 精品日韩欧美| 激情深爱综合网| 日韩精品一区二区三区四| 天天干天天操天天干天天操| 欧美日韩xxx| 久久成年人视频| 国产精品狠色婷| 国产精品入口免费视频一| 色偷偷偷亚洲综合网另类| 国产高清不卡av| 国产精华一区二区三区| 97国产在线播放| 99免费在线观看视频| 成人精品一区二区三区| 成人免费网站在线| 国产精品一区二区免费| 国产精品中文字幕久久久| 国产日韩二区| 国产伦精品一区二区三区视频黑人| 国语精品免费视频| 欧美亚洲第一页| 欧美国产综合在线| 国内精品久久久久伊人av| 激情五月六月婷婷| 国产专区一区二区| 国产免费黄色小视频| 国产天堂视频在线观看| 国产日韩在线一区| 成人在线免费观看一区| av一区二区三区免费观看| 99精品国产一区二区| 91国产一区在线| 久久人人爽爽人人爽人人片av| 国产精品91在线| 久久综合久久综合这里只有精品| 国产激情美女久久久久久吹潮| 久久久久久久久久久人体| 日韩中文字幕在线看| 久久手机精品视频| 精品国产一区二区三区久久久久久 | 国产ts人妖一区二区三区| 久久精品国产综合精品| 久久久久亚洲av无码专区喷水| 精品国产自在精品国产浪潮| 国产精品久久成人免费观看| 国产99在线|中文| 色999五月色| 日韩理论片在线观看| 欧美性大战久久久久| 精品一区二区三区视频日产| 国产九九九九九| 国产精彩精品视频| 久久精品91久久久久久再现| 久久夜色精品国产欧美乱| 欧美激情亚洲国产| 少妇熟女一区二区| 免费在线国产精品| 不卡视频一区二区三区| 久久久久久国产三级电影| 国产精品乱码久久久久| 在线观看亚洲视频啊啊啊啊| 日本不卡一区| 国产有码在线一区二区视频| 91美女片黄在线观看游戏| 久久国产精品精品国产色婷婷| 国产精品久久九九| 亚洲精品欧美日韩专区| 日韩免费在线播放| 精品日韩美女| 久久久7777| 精品久久久久久一区二区里番| 色女人综合av| 国产又粗又爽又黄的视频| 国产成+人+综合+亚洲欧美丁香花| 久久这里只有精品视频首页| 亚洲欧美日韩在线综合| 欧美日韩国产高清视频| 99热国产免费| 国产精品青青在线观看爽香蕉| 欧美激情网站在线观看| 人妻少妇精品久久| 国产麻花豆剧传媒精品mv在线| 久久久久久久av| 亚洲一区二区三| 欧美国产综合视频| 久久这里只有精品23| 欧美精品久久久久| 欧美精品在欧美一区二区| 国产精品av在线播放 | 精品一区日韩成人| 国产精品av在线|