Reference no: EM13168480
C++ in VS and I'm trying to run the following program. As soon as I put in my name after the 2nd cout statement, the program ends. What do I need to add to the program in order for it to execute the next line which is "Enter your last name"?
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
int main()
{
string raptor_prompt_variable_zzyz;
float StreetName;
int ZipCode;
float City;
float StreetType;
float LastName;
float State;
float Total;
float PurchaseAmount;
float FirstName;
int Address;
float Shipping = 1.99;
cout << "Bayou Online Retail" << endl;
cout << "Enter Your First Name ";
cin >> FirstName;
cout<< "Enter Your Last Name";
cin >> LastName;
raptor_prompt_variable_zzyz = "Enter Street Address (Number Portion Only)";
cout << raptor_prompt_variable_zzyz << endl;
cin >> Address;
raptor_prompt_variable_zzyz = "Enter Street Name";
cout << raptor_prompt_variable_zzyz << endl;
cin >> StreetName;
raptor_prompt_variable_zzyz = "Enter Street Type (Ave, St, Rd, or Ln)";
cout << raptor_prompt_variable_zzyz << endl;
cin >> StreetType;
raptor_prompt_variable_zzyz = "Enter City";
cout << raptor_prompt_variable_zzyz << endl;
cin >> City;
raptor_prompt_variable_zzyz = "Enter State";
cout << raptor_prompt_variable_zzyz << endl;
cin >> State;
raptor_prompt_variable_zzyz = "Enter Zip Code";
cout << raptor_prompt_variable_zzyz << endl;
cin >> ZipCode;
raptor_prompt_variable_zzyz = "Enter Purchase Amount";
cout << raptor_prompt_variable_zzyz << endl;
cin >> PurchaseAmount;
Total = PurchaseAmount + Shipping;
cout << "*Bayou Online Retail Receipt*" << endl;
cout << "Customer Name: " <<FirstName<< LastName << endl;
cout << "Address: " << Address << StreetName << StreetType << endl;
cout << "" << City << State << ZipCode << endl;
cout << "The amount purchased is $" << PurchaseAmount << endl;
cout << "The Shipping Amount is $" << Shipping << endl;
cout << "The Total amount is $" << Total << endl;
return 0;
}
Assume ideal behavior for all gases
: Imagine that you have a 7.00 gas tank and a 4.50 gas tank. You need to fill one tank with oxygen and the other with acetylene to use in conjunction with your welding torch.
|
At what temperature will it burst
: A flask that can withstand an internal pressure of 2491 torr, but no more, is filled with a gas at 21.0°C and 758 torr and heated. At what temperature will it burst?
|
What would happen to the molar mass of the solute
: what would happen to the molar mass of the solute if the thermometer used actually read 1.4 degrees Celsius too high?
|
Circut which detects even parity
: Consider the following circuit, which detects even parity. There are one output, even, and three inputs, a(2), a(l) and a(0), which are grouped as a vector or bus. The output is asserted when there are even numbers (i.e., 0 or 2) of 1s from the in..
|
Execute the next line which is enter your last name
: C++ in VS and I'm trying to run the following program. As soon as I put in my name after the 2nd cout statement, the program ends.
|
Write a loop that counts the number of space
: Write a loop that counts the number of space characters in a string. Recall that the space character is represented a
|
Write the equations involved in the following
: write the equations involved in the following
|
Type two numbers from range 20-60
: Ask the user to type two numbers from range 20-60. Keep on asking until he types in the range of 20-60. Display the numbers between those two numbers in ascending order.
|
Write a java program that (1) defines a base/super class a
: Write a Java program that (1) Defines a base/super class A, a subclass B (inherits from A), and a subclass C (inherits from B). The A class must have a method f() which is not implemented in A,
|