皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
Rectangle Area—Complete the Program Your job is to complete the program. When it is complete, the program will ask the user to enter the width and length of a rectangle and then display the rectangle’s area. The program calls the following functions, which have not been written: • getLength – This function should ask the user to enter the rectangle’s length and then return that value as a double . • getWidth – This function should ask the user to enter the rectangle’s width and then return that value as a double . • getArea – This function should accept the rectangle’s length and width as arguments and return the rectangle’s area. The area is calculated by multiplying the length by the width. • displayData – This function should accept the rectangle’s length, width, and area as arguments and display them in an appropriate message on the screen. the not finished cpp are like the following: #include using namespace std; double getLength(); double getWidth(); double getArea(double ,double ); void displayData(double,double,double); int main() { double len,width, area; width=getWidth(); len=getLength(); area=getArea(len,width); displayData(width,len,area); return 0; } double getLength(){ } double getWidth(){ } double getArea(double length,double width){ } void displayData(double width, double length, double area){ }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】湖南菜又称( )
A.
粤菜
B.
湘菜
C.
鲁菜
D.
川菜
【单选题】已知 a=12, 则表达式 a+=a-=a*=a 的结果是
A.
0
B.
133
C.
12
D.
-264
【单选题】下列哪项不属于老年人保健的基本原则
A.
全面性原则
B.
区域化原则
C.
强制性原则
D.
费用分担原则
E.
功能分化原则
【单选题】关于LOTCA认知评测,错误的说法是
A.
包括定向评测,知觉评测,视运动组织检查和思维运作评测四大项
B.
评测方法简单,实用,信度、效度高
C.
评测内容包括四大项,总分20分
D.
是作业治疗认知评定的缩写
E.
得分越低,认知功能越差
【单选题】方案创造是从提高对象的功能价值出发,在正确的功能分析和评价的基础上,针对应改进的具体目标,通过创造性的思维活动,提出能够可靠地实现必要功能的新方案。常用的方法是( )。
A.
歌顿法
B.
加权评分法
C.
强制确定法
D.
优缺点列举法
【单选题】关于LOTCA认知评测,错误的说法是
A.
包括定向评测,知觉评测,视运动组织检查和思维运作评测四大项
B.
评测方法简单,实用,信度、效度高
C.
是作业治疗认知评定的缩写
D.
评测内容包括四大项,总分20分
E.
得分越高,认知功能越差
【单选题】“呦呦鹿鸣,食野之蒿。今有嘉宾,德音孔昭。”化用一部作品中的名句( )
A.
《春秋.鹿鸣》
B.
《诗经.鹿鸣》
C.
《周易.鹿鸣》
D.
《尚书.鹿鸣》
【多选题】思维功能的评定方法有
A.
谚语解释
B.
相似
C.
差异
D.
推理测验
E.
回答实际问题
【单选题】已知a=12,则表达式a+=a-=a*=a的结果是
A.
0
B.
144
C.
12
D.
-264
【单选题】根据原料周期说,第一次产业革命,煤炭、蒸汽机的发明并应用于生产,煤炭价格大幅度上涨,这时候对这种煤炭的需求属于(  )
A.
需求产生的繁荣阶段
B.
需求和供给来源的替代阶段
C.
合成或研究与发展的介入阶段
D.
以上都不是
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题