Execute the next line which is enter your last name

Assignment Help C/C++ Programming
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;

}

 

 

Reference no: EM13168480

Questions Cloud

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,

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write c program-visual studio to scan multiple text files

Write program in C or C++ and Visual Studio to scan multiple text files and count number of occurrences of each word in those files. Use binary tree to keep track of all words.

  Difference between a constant pointer

Explain the difference between a constant pointer to non-constant data and a non-constant pointer to constant data. Show the syntax to declare them.

  For this program reads the first 11 characters

E main for this program reads the first 11 characters from input, saving them. It then reads 26 short integers into |vals|, and passes them and the characters to EmbedWatermark, which subtly alters the contents of vals to contain the characters. A..

  Write a program that will read in 4 test scores per line

Write a program that will read in 4 test scores per line. Print the total number of points earned, your program should work for any number of lines of data.

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Maze program

Maze program. In this assignment you will represent a maze with a binary tree. . The starting point is node N and the ending point is node Z.

  Takes n number of element from user

Write a C program which takes n number of element from user (where, n is specified by user) and stores data in an array. Then, this program displays the largest element of that array.

  You will create a linked list module

You will create a linked list module that exactly meets the specifications given in the supplied header (.h) file. The playlist program must accept a filename on the command line (argv).

  Design your application according to the considerations

Design your application according to the considerations described above.  For example, you must use functions that have the specified signatures, and arrays that have the specified declarations. They are

  Assessment system of a university

Write a program for Assessment system of a University

  Use the convention that all years have 360 days

In writing the days() function, use the convention that all years have 360 days and each month consists of 30 days. The function should return the number of days for any Date structure passed to it. Write a main () function to test your function.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd