Uncategorized

Preceding error

The following program has syntax errors. Correct them. On each successive line, assume that any preceding error has been corrected. (12) #include using std; const double  DECIMAL# = 5.50; const string blanks = ”   “ int ()main  int height, weight; double 10%discount double billingAmount$; double bonus; int hoursWorked = 45;   height = 6.2; weight =

Preceding error Read More »

Namespace

2.     What will be the output of each of the following program when it is executed. (a) #include using namespace std; struct A A() cout < “a”=””><> ; struct B : A B() ; cout < “b”=””><> struct C : B C() ; cout < “c”=””><> struct D : C D() ; cout < “d”=””><>

Namespace Read More »

String department

Rewrite the following program so that it is properly formatted.  (13) #include #include using namespace std; const double X = 13.45; const int Y=18; const char STAR= ‘*’; int main() string employeeID; string department; int num; double salary;  cout<“enter employee=”” id:=”” “;=””> cin>> employeeID; cout cout<“enter department:=”” “;=””> cin >>department; cout cout<“enter a=”” positive=”” integer=”” less=””

String department Read More »

Mystery

What is printed by the following program? Suppose the input is:  (8, 10, 11) Miller 34 62.5 #include #include using namespace std; const double CONVERSION = 3.5;  int main()   const int TEMP = 23; string name; int id; int num; double decNum; double mysteryNum; cout < “enter=”” last=”” name:=”” “;=””> cin >> name; cout < endl;=””

Mystery Read More »

The keyboard

1.A program to demonstrate the writing of a set of lines to a specified file, namely, “text.dat”. 2.A program to illustrate the writing of a set of lines to a user-defined file where name of the file is specified in the user-defined mode. 3.A program to read a set of lines from the keyboard and

The keyboard Read More »

Decimal number

Write C11 statements that prompt the user to enter a decimal number between 0 and 70 and then store the number entered into hoursWorked. Write a C11 statement that multiplies the value of the named constant RATE with the value of hoursWorked and then stores the result into the variable wages.

Decimal number Read More »

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X