一道英文C++题,求大神赐教!!!!!!!!!!
Assumeyourprogramneedstostorethepartnumberofanitemanditscost.Thepartnumbercontainsonl...
Assume your program needs to store the part number of an item and its cost. The part number contains only whole numbers in the range of 5000 to 8000.The cost of an item ranges from $1200 to $3500,the cost can contain a decimal place.In a piece of paper:
a.Write the appropriate declaration statements to create the necessary variables and initialize them to the appropriate value--either 0 or 0.0.
b.Write an assignment statement that assigns the value 5123 to the part number variable.
c.Write an assignment statement that assigns the value 2500.65 to the cost variable.
d.Write a statement that stores in the part number variable the value entered bu the user.
e.Write a statement that stores in the cost variable the value entered by the user. 展开
a.Write the appropriate declaration statements to create the necessary variables and initialize them to the appropriate value--either 0 or 0.0.
b.Write an assignment statement that assigns the value 5123 to the part number variable.
c.Write an assignment statement that assigns the value 2500.65 to the cost variable.
d.Write a statement that stores in the part number variable the value entered bu the user.
e.Write a statement that stores in the cost variable the value entered by the user. 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询