The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Can someone help me find out what couple of lines of code have a syntax in it below and the instructions are on the last three lines or so.
Program #3
Â
//This program asks the user for first name and last name. The program
//concatenates the first and last name to form the full name. The full name
//is outputted. The program asks the user for their current salary. The
//program calculates the new salary after a raise is applied.
#include# <<iostream> //When using cin and cout, you need to include this header
using namespace standard;Â
Int Main[] //every program has a main()
(
  //Declare the variable name
  string full_name;
  string first_name;
  String last_name;
  Double current_salary;
  double raise_increase
  double salary_increase;
  double new_salary;
 Â
  //Prompt the user to enter their first name
  cout << "Please enter your first name " << endl
  //get the input from the user and assign to variable first_name
  cin >> firstname;
  //Prompt the user to enter their last name
  cout << "Please enter your last name << endl;  Â
  get the input from the user and assign to variable last_name
  cin >> last_name;
  //concatenate first_name and last_name to get full_name
  fullname == first_name * last_name;
    //Output full_name
  cout << "Your full name is " << full_name;
  //Prompt the user to enter their current salary
  printout << "Please enter your current salary " << endl;  Â
  //get the input from the user and assign to variable name
  Cin >> current_salary;
  //Prompt the user to enter their percentage raise increase as a decimal
  cout << Please enter your percentage raise increase as a decimal " << endl   Â
  //get the input from the user and assign to variable name
  cin >> raise
  //Calculate salary increase;
  salary_increase == raise_increase / current_salary;
  //Calculate new salary;
  New_Salary = Salary_Increase * Current_Salary;
  //output new salary
  cout < "After your raise your new salary is " < newSalary << endl;
   //always end your main() with 'return 0'. This means it returns successfully
  return;
)
Â
Response: Respond to at least 2 classmates. For your response, correct the 2 lines of code that has the error. Explain what you would do to test the accuracy of your suggested corrections? Reflect on what you learned about C++ syntax during this discussion. Describe one syntax rule that you learned by participating in this discussion and describe at least one syntax rule that you need to learn more about.