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

  Create program that uses functions and reference parameters

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

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  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.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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