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

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

代寫CSCE 240 – Programming

時間:2024-03-06  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


Due: 11:59pm on Monday, March 18

Purpose – Implement the following two classes

Class 1 – MonetaryUnit

Create a MonetaryUnit class that holds the name (a string), monetary symbol (a string) and the amount of the monetary unit that is equivalent to one US dollar (a double) as private data members.

The class must include the following public member functions:

A SetName function that has a string as its parameter and sets the name of the monetary unit to the string as long as the string isn’t empty (has a length of at least 1). The function should return true if the name is set to the function’s argument, and false otherwise.

A GetName function that returns a copy of the name of the monetary unit.

A SetSymbol function that takes a has as its parameter and sets the monetary symbol to the string as long as the string isn’t empty (has a length of at least 1). The function should return true if the symbol is set to the function’s argument, and false otherwise.

A GetSymbol function that returns a copy of the monetary unit’s symbol.

A SetAmountEquivalentTo1Dollar function that has a double as its parameter and sets the double data member equal to the function’s argument as long as the argument is positive. The function should return true if the data member is set to the function’s argument, and false otherwise.

A GetAmountEquivalentTo1Dollar function that returns a copy of the double data member.

A constructor that takes a string for the name, a string for the symbol, and a double for the amount equivalent to one dollar as parameters. The parameters should have default arguments of “US dollars”, “$”, and 1, respectively.

The class must include the following overloaded operator:

Overload the == operator to return true if two MonetaryUnit objects hold the same private data member values.

Review initial tests for the functionality of the class in the following files:

testMonetaryUnitName.cc, testMonetaryUnitSymbol.cc,

testMonetaryUnitAmountEquivalentTo1Dollar.cc, testMonetaryUnitConstructor.cc, and

testMonetaryUnitEquivalent.cc.

If you place all of the attached files in the same directory, you can run the initial tests with the commands

make testMonetaryUnitName

make testMonetaryUnitSymbol

make testMonetaryUnitAmountEquivalentTo1Dollar

make testMonetaryUnitConstructor

make testMonetaryUnitEquivalent

You are strongly encouraged to create more rigorous tests.

Class 2 – MonetaryAmount

Create a MonetaryAmount class that has a value (a double) and a monetary unit (a MonetaryUnit object) as data members.

The class must include the following public member functions:

A GetValue and GetUnit accessor functions that return copies of the MonetaryAmount’s value and MonetaryUnit data members, respectively.

A constructor that takes a double and a constant reference to a MonetaryUnit as parameters. The parameters should have default arguments of 0 and US dollars (MonetaryUnit(“US dollars”, “$”, 1)), respectively. The constructor should set up the new MonetaryAmount object with the parameters’ values.

A ConvertToUnit function that has a constant reference to a MonetaryUnit as its parameter. The function should update the value and the MonetaryUnit data members so that the object holds an equivalent monetary amount in the updated units. For example, assume that an object originally holds 3 US dollars, and that 0.92 Euros is equivalent to 1 US dollar. Converting the object to Euros should update the monetary unit of the object to Euros and it should update the value of the object to 2.76. See testMonetaryAmountConvertToUnit.cc for additional examples.

The class must include the following public static data member:

A public static boolean data member named display_unit_name that holds the value true if monetary amounts are to display with the value followed by a space and the monetary unit name (e.g. “3.25 US dollars”) and false if monetary amounts display with the monetary symbol followed by the numeric value (e.g. “$3.25”). Initialize the value of this data member to false.

This data member is used by the << operator and will be tested in

The class must include the following overloaded operators:

Overload the == operator to return true if two MonetaryAmount objects hold the equivalent amounts, and false if they do not. See testMonetaryAmountEquivalent.cc for examples.

Overload the < operator to return true if the MonetaryAmount object on the left of the operator represents a smaller monetary amount than the MonetaryAmount on the right, and false otherwise. See testMonetaryAmountLessThan.cc for examples.

Overload the > operator to return true if the MonetaryAmount oject on the left of the operator represents a larger monetary amount than the MonetaryAmount on the right, and false otherwise. See testMonetaryAmountGreaterThan.cc for examples.

Overload the << operator to output a MonetaryAmount object in the format specified by the static data member display_unit_name. See testMonetaryAmountCreateOutput.cc and expectedoutput.txt for example output statements and the output they should create.

Overload the + operator to take two MonetaryAmount objects as operands and returns a MonetaryAmount object holding the sum of the two objects in the units of the left operand. See testMonetaryAmountAddition.cc for examples.

Review initial tests for the functionality of the class in the following attached files: testMonetaryAmountConstructor.cc, testMonetaryAmountConvertToUnit.cc, testMonetaryAmountEquivalent.cc, testMonetaryAmountLessThan.cc, testMonetaryAmountGreaterThan.cc, testMonetaryAmountCreateOutput.cc, expectedoutput.txt, and testMonetaryAmountAddition.cc

If you place all of the attached files in the same directory, you can run the initial tests with the commands

make testMonetaryAmountConstructor

make testMonetaryAmountConvertToUnit

make testMonetaryAmountEquivalent

make testMonetaryAmountLessThan

make testMonetaryAmountGreaterThan

make testMonetaryAmountOutput

make testMonetaryAmountAddition

You are strongly encouraged to create more rigorous tests.

Specifications

- Add all code for the definition of the MonetaryUnit class in a header file named MonetaryUnit.h

- Include all of the necessary code for the MonetaryUnit class, including the implementations of the public member functions and the overloaded == operator, in a source file named MonetaryUnit.cc

- Add all code for the definition of the MonetaryAmount class in a header file named MonetaryAmount.h

- Include all of the necessary code for the MonetaryAmount class, including the implementations of the public member functions and operators, in a source file named MonetaryAmount.cc

- You will submit a zip file (only a zip file will be accepted) containing MonetaryUnit.h, MonetaryUnit.cc, MonetaryAmount.h and MonetaryAmount.cc to the assignment in Blackboard.

- Source files must compile and run on a computer of the instructor’s choosing in the Linux lab (see your course syllabus for additional details).

- Your programming assignment will be graded with modified versions of the test files

Grade Breakdown

Style MonetaryUnit.h: 0.25 points

Style MonetaryUnit.cc: 0.25 points

Style MonetaryAmount.h: 0.25 points

Style MonetaryAmount.cc: 0.25 points

Documentation: 1 point

Clean compilation of MonetaryUnit.cc: 0.5 points

Clean compilation of MonetaryAmount.cc: 0.5 points

Passes instructor’s modified testMonetaryUnitName.cc tests: 0.5 points

Passes instructor’s modified testMonetaryUnitSymbol.cc tests: 0.5 points

Passes instructor’s modified testMonetaryUnitAmountEquivalentTo1Dollar.cc tests:

0.5 points

Passes

instructor’s modified

testMonetaryUnitConstructor.cc tests: 0.5 points

Passes

instructor’s modified

testMonetaryUnitEquivalent.cc tests: 0.5 points

Passes

instructor’s modified

testMonetaryAmountConstructor.cc tests: 0.5 points

Passes

instructor’s modified

testMonetaryAmountConvertToUnit.cc tests: 1 point

Passes

instructor’s modified

testMonetaryAmountEquivalent.cc tests: 0.5 points

Passes

instructor’s modified

testMonetaryAmountLessThan.cc tests: 0.5 points

Passes

instructor’s modified

testMonetaryAmountGreaterThan.cc tests: 0.5 points

Passes instructor’s modified MonetaryAmount << operator tests: 1 point

Passes instructor’s modified testMonetaryAmountAddition.cc.cc tests: 0.5 point

The penalty for late program submissions is 10% per day, with no submission accepted after 3 days.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

掃一掃在手機打開當前頁
  • 上一篇:代寫MMME1027、代做Matlab語言程序
  • 下一篇:代做CSCI 241 Data Structures
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業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在线免费观看
    欧美成人第一页| 国产精品久久久久久久久久免费| 久久久精品国产| 日韩av高清| 91久久精品在线| 欧美激情精品久久久久久| 精品免费视频123区| 久久久久久久久久久久久久久久av | 日本久久91av| 国产乱人伦精品一区二区三区| 国产精品久久久久久久久久久久午夜片 | 国产成人精品日本亚洲专区61| 亚洲视频欧美在线| 99热亚洲精品| 岛国一区二区三区高清视频| 国产精品1区2区在线观看| 亚洲综合欧美日韩| 91久久精品国产| 婷婷五月综合缴情在线视频| 91av免费观看91av精品在线| 亚洲最大av网| 97久久精品国产| 电影午夜精品一区二区三区| 久久久一本精品99久久精品 | 国产主播精品在线| 久久亚洲欧美日韩精品专区| 麻豆久久久9性大片| 国产精品久在线观看| 精品视频一区在线| 一区二区三区四区久久| 99精品99久久久久久宅男| 视频一区三区| 久久久久久久91| 欧美国产视频一区| 国产精品免费在线免费| 国内少妇毛片视频| 精品国产一区二区三区麻豆免费观看完整版 | 色琪琪综合男人的天堂aⅴ视频| 日本不卡高字幕在线2019| 日韩一中文字幕| 免费观看亚洲视频| 亚洲欧美日韩在线综合| 久久99国产精品一区| 黄色一级视频片| 一区二区欧美日韩| 国产a级全部精品| 欧美日韩亚洲免费| 精品国产一区二区三区四区vr| www国产亚洲精品| 欧美一级视频免费在线观看| 精品国内自产拍在线观看| 国产一区精品视频| 亚洲 高清 成人 动漫| 色妞欧美日韩在线| 国产偷久久久精品专区| 天堂v在线视频| 国产精品视频一区二区三区经| 高清一区二区三区视频| 色女人综合av| 久久亚洲欧美日韩精品专区| 国产精彩视频一区二区| 欧美不卡1区2区3区| 一道精品一区二区三区| 色妞一区二区三区| 成人av免费电影| 青青在线免费观看| 综合久久国产| 国产精品日韩在线一区| www国产黄色| 日韩欧美视频一区二区三区四区| 久久综合久中文字幕青草| 久久久久九九九| 国产日韩三区| 日韩精品一区二区三区不卡| 国产99视频精品免视看7| 久久久久久中文| 成人av蜜桃| 免费亚洲一区二区| 日韩在线综合网| 欧美日韩福利电影| 久久韩国免费视频| 国产极品尤物在线| 国产伦精品一区二区三区四区免费 | 99久久久精品视频| 欧美激情专区| 性高湖久久久久久久久aaaaa| 国产精品福利久久久| 久久国产精品视频在线观看| 国产视频一区二区不卡| 欧美与黑人午夜性猛交久久久 | 欧美激情中文网| 久久久国产视频91| 久久精品.com| 116极品美女午夜一级| 国产日韩欧美中文在线播放| 欧美激情第一页在线观看| 日韩av第一页| 亚洲a∨一区二区三区| 欧美极品第一页| 久久99国产精品久久久久久久久| www.日韩av.com| 久久综合九色欧美狠狠| 99久热re在线精品996热视频| 国产视频一区二区三区在线播放 | 久久人人爽人人爽人人片av高请| 国产狼人综合免费视频| 蜜桃麻豆91| 免费在线精品视频| 欧美视频1区| 青青草视频国产| 日韩高清国产精品| 日韩欧美一区二| 日韩女在线观看| 日韩免费在线播放| 日本高清一区| 日韩专区第三页| 欧美一区二区三区四区在线 | 亚洲一区二区三区av无码| 精品国产综合| 国产a∨精品一区二区三区不卡| 国产精品久久7| 久久成年人免费电影| 麻豆国产va免费精品高清在线| 国产精品电影网站| 国产精品电影一区| 欧美乱妇40p| 欧美激情一级欧美精品| 亚洲一区三区视频在线观看| 亚洲欧洲一区二区在线观看| 亚州成人av在线| 日韩欧美一区二区三区四区五区| 日本高清视频精品| 欧美在线国产精品| 美女精品国产| 国产剧情日韩欧美| 91久久精品美女| 久久国产午夜精品理论片最新版本| 久久国产主播精品| 国产精品入口免费| 国产精品成熟老女人| 色中色综合影院手机版在线观看| 亚洲自拍av在线| 日韩xxxx视频| 欧美xxxx黑人又粗又长密月| 国产日韩精品在线观看| 国产精品自产拍在线观看中文| 97精品久久久| 日韩在线观看网址| 久久亚洲影音av资源网| 亚洲直播在线一区| 日韩欧美亚洲v片| 含羞草久久爱69一区| 国产精品自拍偷拍视频| 国产成人一二三区| 国产精品视频久久久久| 欧美激情第6页| 日本一区视频在线观看| 激情小说网站亚洲综合网| 国产伦精品一区二区三区照片 | 色综合久久88色综合天天看泰| 亚洲自拍小视频| 欧美专区在线观看| 国产毛片视频网站| 国产高清在线精品一区二区三区| 精品国产一区二区三区在线观看| 久久成人在线视频| 日韩在线一级片| 国产一区二区视频在线观看| caopor在线视频| 久久精品国产成人精品| 久久久久国色av免费观看性色| 日韩a∨精品日韩在线观看| 国内精品视频在线| 久久资源亚洲| 不卡伊人av在线播放| 日本中文字幕成人| 国产日韩在线视频| 九九九久久久| 欧美精品videos| 青青a在线精品免费观看| 国产精品一区二区三区毛片淫片| 久在线观看视频| 精品国产免费av| 日韩欧美精品久久| av在线播放亚洲| 国产精品久久久久av| 日本午夜人人精品| 99在线免费视频观看| 国产精品毛片一区视频| 日本午夜精品电影| 97免费视频观看| 久久成人亚洲精品| 欧美一区深夜视频| 久久免费国产精品1| 影音先锋欧美在线| 精品视频一区二区在线| 日韩中文字幕亚洲| 日日鲁鲁鲁夜夜爽爽狠狠视频97| 国产日韩精品入口| 国产精品免费成人|