CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
1
Age VariableUsing an integer, create a variable to hold your age (use any age value you'd like, such as 25).
easyNot startedSolve
2
New Line CharacterUse the newline escape sequence \n in one cout statement to display the following text on two separate lines (see Expected Output).
easyNot startedSolve
3
String OutputCreate a string variable with the value "Alice" and use cout to display it in the exact sentence shown in Expected Output.
easyNot startedSolve
4
Character OutputCreate a char variable with the value '#' and use cout to display it in the exact sentence shown in Expected Output.
easyNot startedSolve
5
Integer OutputCreate an int variable with the value 100 and use cout to display it in the exact sentence shown in Expected Output.
easyNot startedSolve
6
Multiple VariablesCreate a string variable with the value "Sarah" and an int variable with the value 22.
easyNot startedSolve
7
Float PrecisionCreate a float variable with the value 9.8765f.
easyNot startedSolve
279
Hello MessageUse cout to print exactly this text (no quotes, no trailing newline) (see Expected Output).
easyNot startedSolve
280
Addition EquationPrint this exact line, where the result is computed (not typed literally) (see Expected Output).
easyNot startedSolve
281
Print Two LinesUse a newline escape to print these two lines (see Expected Output).
easyNot startedSolve
282
Tab Separated ValuesUse the tab escape sequence to print three numbers separated by tabs (see Expected Output).
easyNot startedSolve
283
Quotation MarksTo put a double quote inside a string, escape it with a backslash (\").
easyNot startedSolve
284
Backslash in a PathA backslash in a string must be written as \\ (two backslashes).
easyNot startedSolve
285
Negative IntegerUse cout to print a negative number (see Expected Output).
easyNot startedSolve
286
Multiplication EquationPrint this exact line, computing the product (not typing it literally) (see Expected Output).
easyNot startedSolve
287
Concatenated OutputYou can chain several values onto one cout statement with multiple << operators.
easyNot startedSolve
293
Division EquationTwo integers a = 20 and b = 4 are given.
easyNot startedSolve
294
ASCII Code of a CharacterA char letter = 'A' is given.
easyNot startedSolve
295
Character from ASCII CodeAn int code = 66 is given.
easyNot startedSolve
296
Print a PercentageAn int score = 85 is given.
easyNot startedSolve
297
Currency FormatA double price = 19.99 is given.
easyNot startedSolve
298
Modulo RemainderTwo integers a = 17 and b = 5 are given.
easyNot startedSolve
299
Print a FractionTwo integers num = 3 and den = 4 are given.
easyNot startedSolve
300
Print an ApostrophePrint the following text, which contains an apostrophe, exactly as shown (see Expected Output).
easyNot startedSolve
301
Read and Echo an IntegerRead one integer from standard input using cin, then print it back on its own line.
easyNot startedSolve
302
Read and Print a NameRead a single-word name from standard input with cin, then print a greeting.
easyNot startedSolve
303
Print Pi to Five DecimalsA double pi = 3.14159265 is given.
easyNot startedSolve
304
Square of a NumberAn int n = 7 is given.
easyNot startedSolve
723
Zero-Padded Id and a Dotted NameThe starter already reads an item id, a name (which may contain spaces), a quantity and a unit price.
easyNot startedSolve
8
Mixed Escape SequencesUse one cout statement with both \n and \t to display the formatted text shown in Expected Output.
mediumNot startedSolve
9
Subtraction EquationCreate two integer variables with the values 15 and 8.
mediumNot startedSolve
10
Product with FloatCreate an int variable with the value 5 and a float variable with the value 2.5f.
mediumNot startedSolve
11
Three Decimal PlacesCreate a float variable with the value 12.34567f.
mediumNot startedSolve
12
Receipt FormattingCreate three float variables: price1 = 12.99f, price2 = 8.50f, and price3 = 15.25f.
mediumNot startedSolve
13
Field Width PaddingCreate four integer variables with the values 5, 42, 156, and 1003.
mediumNot startedSolve
14
Temperature ConversionCreate a float variable for Fahrenheit temperature with the value 98.6f.
mediumNot startedSolve
15
Complex Product DisplayCreate variables: string item = "Laptop", int quantity = 3, float price = 899.99f.
mediumNot startedSolve
288
Print a Boolean as TextBy default cout prints a boolean as 1 or 0.
mediumNot startedSolve
305
Sum of Two InputsRead two integers from standard input, then print their sum on one line.
mediumNot startedSolve
306
Average of Two NumbersTwo grades double a = 90 and double b = 85 are given.
mediumNot startedSolve
307
Left-Aligned TextPrint the word Cat left-aligned in a field 10 characters wide, then a | to mark the end of the field (see Expected Output).
mediumNot startedSolve
308
Leading ZerosAn int n = 42 is given.
mediumNot startedSolve
309
Hexadecimal OutputAn int n = 255 is given.
mediumNot startedSolve
310
Octal OutputAn int n = 64 is given.
mediumNot startedSolve
311
Uppercase HexadecimalAn int n = 255 is given.
mediumNot startedSolve
312
Show Positive SignAn int n = 42 is given.
mediumNot startedSolve
313
Rounded to Whole NumberA double x = 3.7 is given.
mediumNot startedSolve
314
Scientific NotationA double x = 12345.678 is given.
hardNot startedSolve
315
Formatted Table RowPrint one table row: the name Apple left-aligned in a 10-wide field, followed by the price 1.5 right-aligned in an 8-wide field with 2 decimals (see Expected Output).
hardNot startedSolve
316
Number in Three BasesAn int n = 255 is given.
hardNot startedSolve
317
Right-Aligned Price ColumnThree prices 5.5, 12.25, and 100.0 are given.
hardNot startedSolve