Find Jobs
Hire Freelancers

Flash Assignment

$10-30 USD

Đã hủy
Đã đăng vào hơn 9 năm trước

$10-30 USD

Thanh toán khi bàn giao
Download the zipped project file [login to view URL] from the Homework Assignments area of Blackboard. The file contains a project file Homework [login to view URL], an implementation file flash.h for the flash class, and an application file flashapp.cpp. Define the member functions to work with a list of flash cards for doing arithmetic. Here are the declarations: struct card { int n1, n2, // values on flash card answer; // answer to flash card char op; // operator (*, +, -, / or %) card* next; // pointer to the next card }; typedef card* card_ptr; class flash { private: card_ptr front; public: flash (); void add_problem (); void remove_problem (); void print (); void quiz (); }; The member functions to be defined are: flash: constructor that creates an empty flash card list. add_problem: Adds a problem to the end of the list (not to the front). It should prompt the user for the equation to solve (example: 8 + 2). The function should create a node, place in the private data for the node, including the answer which it must compute, and insert it at the end of the list. / and % perform integer arithmetic. An indication that a problem has been added should be printed. remove_problem: Removes the last problem in the list. If there are no problems in the list, an error message should be printed. The removed node should be recycled. An indication that a problem has been removed should be printed. print: Prints the problems in the list. They should be printed one per line, in equation form and should include the answers. If there are no problems to print, an error message should be printed. quiz: Presents each problem in turn to the user. For example: 6 * 2 = quiz indicates for each problem whether the user correctly answered it. When the user enters a wrong answer, the correct answer should be given. quiz should keep a tally of the number of problems correctly answered. It should print the number of problems correctly answered out of the total number at the end of the quiz. For example: You got 7 problems out of 9 problems correct! If there are no problems in the list, quiz should print an error message. You should not add any new private data items to the class. If you would like to write some private helper functions, you may do so. A menu driven application file is included in the project folder. You need to include a declaration of a flash class variable and calls to the member functions. When done, place your flash.h and [login to view URL] files in the Homework 8 area on Blackboard.
Mã dự án: 6806469

Về dự án

2 đề xuất
Dự án từ xa
Hoạt động 9 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
2 freelancer chào giá trung bình $40 USD cho công việc này
Avatar người dùng
Hello. We are a team of 7 peoples. We are capable of carrying out presented contents well. Once awarded the bid,We can finish this project ahead of time. This is REALLY eye-catching and interesting project, we'd like to participate in. Our price will positively surprise you as well as high quality and little terms. Can you contact us?
$50 USD trong 3 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của UNITED STATES
Bronx, United States
5,0
4
Phương thức thanh toán đã xác thực
Thành viên từ thg 10 17, 2014

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.