Now modify the Calculator so it can take a file as input I provide
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

Now modify the Calculator so it can take a file as input I provide

Task2

Now modify the Calculator so it can take a file as input I provide a few sample files to help here , you probably need to do others that you create yourself to be sure all cases are covered. 

It should return to the menu if a ; is processed or if it reaches end of file.

tabs, cr, nl and spaces in test file or input from the keyboard are to be ignored be ignored (whitespace)

for example an input file for the pass option might be (from testj.txt supplied)

3+2=

7-2=

for example an input file for the Hd option might be (from task4aa.txt supplied)

3+ 2= m1

6+9=m2

K

R1+R2=

Hint
Computer"This program takes the operator and two operands from the user. Also, the operator is stored in the variable op and two operands which are stored in num1 and num2 respectively.# include <iostream>using namespace std;int main() {  char op;  float num1, num2;  cout << ""Enter operator: +, -, *, /: "";  cin >> op;  cout << ""Enter two operands...

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.