COMP 3141: Object Oriented Design and ProgrammingC/C++

Java Python COMP 3141: Object Oriented Design and Programming

Project (10%)

Problem:

You need to develop a program code to build a calculator. The program should open with two options of:

a.   Basic calculator

b.   Scientific calculator

Basic calculator—This will allow the six basic functions of:

a.   Addition

b.   Subtraction

c.   Multiplication d.  Division

e.   Square root f.    Square

Scientific calculator—This will allow mathematical operations for sine, cosine, etc. (You may lead to the level of operations.)

The project is done in two phases:

Phase 1

Plan all the classes with constructor, destructor, accessor, and mutators. You will need to do the class declaration in a header(.h) file, and the class implementation in the .cpp file.

Now add more methods in the classes for display and other calculations.

Phase 2:

Design the driver program to display a menu to take user input for the type of calculator the user wishes to use. The calculator should keep on working until the user wishes to quit. Also, there should be a chance given to the user to switch to the alternative mode without closing and re-running the entire program.

Deliverables:

1.   PDF file having Phase 1 with the code plan explaining the OOPS features you have planned to use (40 marks)

2.   Phase 2 completed with screen shots in a zipped format with fully executable code (50 marks)

10 marks are reserved for any additional features you add in the project. Do highlight them in the submission (e.g. using +/- keystrokes to input rather than menu choices, visual display for menu, etc.).

Rubric

Phases

Code Structure

Documentation

COMP 3141: Object Oriented Design and ProgrammingC/C++ Score

Phase 1

Class definition

demonstrates content knowledge,

understanding, and

application gained from readings in the object

structures.

(20 marks)

All the Class structures are well documented and

explained.

(20 marks)

/40

Phase 2

Overall Project

developed as per given guidelines.

(20 marks)

The calculator  execution does not break.

(15 marks)

The

calculations are all

correct.

(15 marks)

/50

Additional

An ability to study additional features and incorporate in the project         

  • 20
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个错误通常是在运行 C/C++ 程序时出现的。它意味着编译器在编译程序时发生了错误,导致无法正确运行程序。可能的原因包括语法错误、链接错误或者库文件丢失等等。为了解决这个问题,你可以检查编译器的输出信息,查看具体的错误提示,从而找到并修复错误。你也可以在编译程序时加入调试信息,以便更好地定位问题。另外,确保你的代码符合语法规范,并且正确地链接了所需的库文件,这些也有助于解决这个问题。非常抱歉,由于您没有提供更多的上下文信息,我很难确定您遇到的确切问题。不过,通常情况下,“error while running c/c++ comp”是指在运行C/C++编译器时出现了错误。以下是一些常见的可能导致此错误的原因和解决方法: 1. 您的代码存在语法错误或逻辑错误,导致编译器无法正常编译。请检查您的代码并尝试修复任何错误。 2. 您的编译器可能没有正确地配置或安装。请检查您的编译器的设置和安装,并确保它们正确地安装和配置。 3. 您的代码可能依赖于缺失的库或头文件。请检查您的代码并确保它们正确地包含了必要的库和头文件。 4. 您的代码可能包含了与平台或操作系统不兼容的部分。请检查您的代码并确保它们与您的平台和操作系统兼容。 如果以上解决方法仍然无法解决您的问题,我建议您提供更多的上下文信息,例如具体的错误消息和代码片段,这将有助于更准确地确定问题并提供更好的解决方案。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值