Phục hồi và bền hóa động cơ không tháo rã : Công Nghệ Gốm Kim Loại XADO - Metal-Ceramic Xado

THIÊN AN Technology Thiết kế website Chuyên Nghiệp ! | Domain Hosting Chất lượng Cao!

Loopinh trong C++

VB , C++ , JAVA , .... ,
Thuật toán ....

Điều hành viên: Luu Thanh Nghi, Nửa bốn mùa, Giọt nước

Loopinh trong C++

Gửi bàigửi bởi thixgame » 09 Tháng 3 2009, 12:32

Mình có bài toán c++,làm hoài mà vẫn bị báo lỗi,nhờ các bạn và admin giải dùm mình
đây là bài tập :
C++ Programming
Looping
1. Write a program that plays the “99 bottles of <your favorite drink> on the wall” song. It should count from
99 bottles down to 0 outputting each line of the countdown to the screen.
2. Upgrade your calculator from Exercise #2 to a new and improved Version 3.0. This version of your
software should add the following features:
a. The user should be able to perform a running series of calculations just like a real calculator (e.g,
2 + 2 * 5 + 3). There is no order of operations, just perform each calculation as it is entered (in
the preceding example… 2 + 2 is 4 * 5 is 20 – 3 is 17. You can optionally print the running total
after each calculation. The equation should end when the user enters the equal sign (“=”).
b. The calculator should compute exponents. Use the caret symbol (“^”) for your exponent
operator. NOTE: You must write your own exponent method, you are not allowed to use any
built-in C++ methods for this purpose.
c. The calculator should give the user the option to continue entering equations. After the user
ends an equation with the equal sign, ask them if they would like to continue. If so, start a new
equation. If not, the program should end.
d. Your calculator should handle decimal numbers as well as negative numbers.
What to turn in
Show me your project and source code from within Visual Studio. Run your programs from Visual Studio so that I
can test the input and see the results on screen. Make sure that your source code uses good code style and is well
commented. As always, make sure to keep a copy of your project and source code for your records.
Due
End of the next lab session.
thixgame
 
Bài viết: 1
Ngày tham gia: 05 Tháng 3 2009, 16:34

Quay về LẬP TRÌNH Ứng Dụng

Đang trực tuyến

Đang xem chuyên mục này: Không có thành viên nào trực tuyến.2 khách.

cron