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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫CSCE 240 – Programming

時(shí)間:2024-03-06  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)


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 

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

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

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产高潮呻吟久久久| 国产精品区二区三区日本| 日韩一区二区在线视频| 亚洲精品无人区| 成人亚洲欧美一区二区三区| 国产精品成人av性教育| 欧美一区深夜视频| 91国内在线视频| 亚洲欧洲日夜超级视频| www.日本在线视频| 欧美激情综合色综合啪啪五月| 国内精品视频在线| 国产精品久久激情| 欧美日韩天天操| 日韩少妇与小伙激情| 欧美怡春院一区二区三区 | 欧美亚洲一区在线| 久久国产精品视频在线观看| 偷拍视频一区二区| 91av免费看| 国产99视频精品免费视频36| 国产欧美欧洲在线观看| 九九精品在线视频| 国产日韩欧美中文在线播放| 欧美精品一区二区三区国产精品 | 久久九九视频| 日本精品久久久久影院| www.日本久久久久com.| 霍思燕三级露全乳照| 色综合导航网站| 高清一区二区三区视频| 亚洲黄色成人久久久| 久久国产午夜精品理论片最新版本| 在线观看成人一级片| 777精品久无码人妻蜜桃| 欧美一乱一性一交一视频| 深夜成人在线观看| 国模精品系列视频| 一区二区三区精品国产| 8050国产精品久久久久久| 日韩欧美一区二区视频在线播放| 久草视频这里只有精品| 蜜桃av噜噜一区二区三区| 精品九九九九| 99久久精品免费看国产一区二区三区 | 热re99久久精品国产66热| 久久久久这里只有精品| 欧美日韩亚洲国产成人| 精品久久一区二区三区蜜桃| 成人精品视频99在线观看免费| 少妇人妻在线视频| 国产精品女视频| 成人福利视频网| 精品视频免费观看| 亚洲v日韩v欧美v综合| 99在线国产| 青青青青在线视频| 精品国产综合| 国产成人avxxxxx在线看| 精品人妻人人做人人爽| 中国成人亚色综合网站| 久久久久久久成人| 成人毛片100部免费看| 热99久久精品| 一区二区精品免费视频| www.日韩.com| 97久久精品午夜一区二区| 青青草成人网| 亚洲伊人成综合成人网| 国产精品青青草| caoporn国产精品免费公开| 欧洲国产精品| 亚洲一区二区三区毛片| 久久手机免费视频| 91国产视频在线播放| 韩国视频理论视频久久| 日本一区二区三区视频免费看| 久久成人精品视频| 日韩综合中文字幕| 91高清免费在线观看| 免费特级黄色片| 日韩色妇久久av| 亚洲一区二区在线免费观看| 国产精品福利视频| www.欧美免费| av一区二区三区在线观看| 精品日产一区2区三区黄免费 | 国产精品对白刺激久久久| 久久一区二区三区av| 国产一区二区三区免费不卡| 日本久久精品视频| 亚洲欧洲国产精品久久| 久久天天躁狠狠躁夜夜躁2014| 日韩亚洲一区二区| 久久免费视频在线| 国产欧美在线看| 国内精品一区二区三区| 欧洲精品在线视频| 日韩在线三区| 亚洲人体一区| 中国人体摄影一区二区三区| 久久中文字幕一区| 久久久99久久精品女同性| 久久久成人精品一区二区三区| 成人久久一区二区三区| 国产日韩在线观看av| 国模吧无码一区二区三区| 欧美激情视频一区二区三区| 日本欧美在线视频| 天堂√在线观看一区二区| 精品国产乱码久久久久久久软件 | 国产精品麻豆va在线播放| 久久久久久久激情视频| 久久久久免费精品国产| 国产成人一区二区三区免费看| 97成人在线观看视频| 国产女教师bbwbbwbbw| 国产情侣第一页| 国产偷久久久精品专区| 国产一区视频观看| 精品日韩美女| 国产女人18毛片水18精品| 国产综合 伊人色| 国模视频一区二区| 韩国精品久久久999| 免费av网址在线| 国产在线观看一区二区三区| 国产综合视频在线观看| 国产无套内射久久久国产| 国产精品亚洲综合天堂夜夜| 北条麻妃av高潮尖叫在线观看| 成人毛片100部免费看| 91九色视频在线| 国产黄页在线观看| 久久精品人人做人人爽电影| 久久99精品久久久久久水蜜桃 | 久久激情五月丁香伊人| 国产精品旅馆在线| 中文字幕人成一区| 性欧美精品一区二区三区在线播放| 无码中文字幕色专区| 日韩欧美手机在线| 免费国产在线精品一区二区三区| 国产欧美日韩最新| 91精品黄色| 国产成人久久777777| 欧美精品生活片| 午夜一区二区三视频在线观看| 日本精品久久久久久久| 国模精品一区二区三区色天香| 国产一区二区在线观看免费播放| 国产九区一区在线| 国产成人在线小视频| 国产精品视频1区| 欧美极品在线播放| 日本三日本三级少妇三级66| 欧美不卡福利| 99久久精品免费看国产一区二区三区 | 亚洲精品不卡| 欧美亚洲国产精品| 国产精品午夜国产小视频| 国产成人一区二区在线| 另类天堂视频在线观看| 亚洲国产成人不卡| 韩日精品中文字幕| 99免费在线观看视频| 国产成人精品综合| 亚洲制服欧美久久| 欧美 日本 亚洲| 91传媒视频免费| 国产精品海角社区在线观看| 亚洲v日韩v欧美v综合| 免费看黄色a级片| 久久久久久www| 欧美精品在线免费观看| 日本久久久久久久| 国产精选久久久久久| 日韩在线视频国产| 久久亚洲影音av资源网| 日韩av在线综合| 国产精品中文在线| 久久精品这里热有精品| 亚洲国产另类久久久精品极度 | 久久久久北条麻妃免费看| 影音先锋欧美在线| 欧美日韩亚洲在线| 91精品国产91久久久久久最新| 国产精品少妇在线视频| 少妇一晚三次一区二区三区| 国产青草视频在线观看| 日韩最新在线视频| 午夜午夜精品一区二区三区文| 男人天堂新网址| 国产福利视频一区二区| 中文字幕在线乱| 狠狠色综合色区| 久久久久久伊人| 亚洲va久久久噜噜噜| 国产欧美日韩中文| 国产精品久久久久久久久久ktv|