Hello, I'm new to doing and I'm taking a course I can't find out what is wrong with this code.
Could someone please help me?
//PURPOSE: Displays a User's nickname and hours worked
#include <iostream> //for cin and count
#include <iomanip> //for formatting decimal numbers
#include <string> //for using the string class
using namespace std; //for later versions of C++
int main ()
char letter1, letter2, letter3; //input: three letters to display
double hoursPerDay, hoursPerWeek; //hours per day, hours per week
int numDays; //number of days worked in a week
string name; //user's first name
//Enter name and initials, the hours per day
//and the number of days
cout<<"Please enter your name";
cout<<"Enter three initials for your name:";
cout<<"Enter the number of hours you work in a day: ";
cout<<"Enter the number of Days you work in a week: ";
//Calculate the number of hours worked in a week
hoursPerWeek=hoursPerDay * numDays;
//Output a messageformatting the hours to one decimal place
cout<< fixed << showpoint << setprecision(1);
cout<<"Hello" <<name <<endl;
cout<<"Your intitials are: " <<letter1 <<"."
cout<<"I hope you enjoy studying C++ for" <<hoursPerWeek
<<"hours each week!" <<endl<<endl;
cout<<"Written by Skreedles"