I keep getting that error on this line. "speed - zone = amount;" What did I do wrong? thanks
Code:
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main() {
string input = "";
int speed;
double amount;
//double Samount = 0;
double ticket = 0;
int zone;
cout << "Please Enter Zone Speed (20 for school zone): ";
cin >> zone;
cout << "Please Enter Speed: ";
cin >> speed;
if (speed > zone)
speed - zone = amount;
amount * 3.00 = ticket;
print ticket;
else if (zone = 20)
speed - zone = amount
amount* 6.00 = ticket;
print ticket;
//if (speed > schoolZone) then
//speed > schoolZone = Samount;
//Samount* 6.00 = ticket;
//print ticket;
//else
//print "safe driving"
}