Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

code to create a checkerboard pattern with the words black and white. r Sample Output: Input number of rows: 5 black-white-black-white-black white-black-white-black-white black-white-black-white-black white-black-white-black-white black-white-black-white-black

code to create a checkerboard pattern with the words "black" and "white". r Sample Output: Input number of rows: 5 black-white-black-white-black white-black-white-black-white black-white-black-white-black white-black-white-black-white black-white-black-white-black

program in C++ to calculate the sum of the series 1.2+2.3+3.4+4.5+5.6+....... Sample Output: Input the last integer between 1 to 98 without fraction you want to add: 10 1.2 + 2.3 + 3.4 + 4.5 + 5.6 + 6.7 + 7.8 + 8.9 + 9.1 + 10.11 The sum of the series =59.61

program that will print the first N numbers for a specific base. Sample Output: Print the first N numbers for a specific base: The number 11 in base 10 = 1*(10^1)+1*(10^0)=11 Similarly the number 11 in base 7 = 1*(7^1)+1*(7^0)=8 ---------------------------------------------------------------- Input the number of term: 15 Input the base: 9 The numbers in base 9 are: 1 2 3 4 5 6 7 8 10 11 12 13 14 15 16

program in C++ to produce a square matrix with 0's down the main diagonal, 1's in the entries just above and below the main diagonal, 2's above and below that, etc. 0 1 2 3 4 1 0 1 2 3 2 1 0 1 2 3 2 1 0 1 4 3 2 1 0 Sample Output:

Input number or rows: 8 0 1 2 3 4 5 6 7 1 0 1 2 3 4 5 6 2 1 0 1 2 3 4 5 3 2 1 0 1 2 3 4 4 3 2 1 0 1 2 3 5 4 3 2 1 0 1 2 6 5 4 3 2 1 0 1 7 6 5 4 3 2 1 0

program in C++ to convert a decimal number to binary number. Sample Output: Input a decimal number: 35 The binary number is: 100011 program in C++ to convert a decimal number to hexadecimal number. Sample Output: Input a decimal number: 43 The hexadecimal number is : 2B

program in C++ to convert a decimal number to octal number. Go to the editor Sample Output: Input a decimal number: 15 The octal number is: 17 Click me to see the sample solution

program in C++ to convert a binary number to decimal number. Sample Output: Input a binary number: 1011 The decimal number: 11 program in C++ to convert a binary number to hexadecimal number. Sample Output: Input a binary number: 1011 The hexadecimal value: B program in C++ to convert a binary number to octal number.r Sample Output: Input a binary number: 1011 The equivalent octal value of 1011 is : 13 program in C++ to convert a octal number to decimal number. r Sample Output: Input any octal number: 17 The equivalent decimal number: 15 program in C++ to convert a octal number to binary number. Go to the editor Sample Output: Input any octal number: 17 The equivalent binary number: 1111 program in C++ to convert a octal number to a hexadecimal number. Sample Output: Input any octal number: 77 The hexadecimal value of 77 is: 3F program in C++ to convert a hexadecimal number to decimal number. Sample Output: Input any 32-bit Hexadecimal Number: 25 The value in decimal number is: 37 program in C++ to convert hexadecimal number to binary number. G Sample Output: Input any 32-bit Hexadecimal Number: 5f The equivalant binary number is: 1011111 program in C++ to convert a hexadecimal number to octal number. Sample Output: Input any 32-bit Hexadecimal Number: 5f The equivalant octal number is: 137 program in C++ to compare two numbers. Sample Output: Input the first integer: 25 Input the second integer: 15 25 != 15 25 > 15 25 >= 15 program in C++ to compute the sum of the digits of an integer. Sample Output: Input any number: 25 The sum of the digits of the number 25 is: 7 program in C++ to compute the sum of the digits of an integer using function. Sample Output: Input any number: 255 The sum of the digits of the number 255 is: 12 program in C++ to reverse a string. Go to the editor Sample Output: Enter a string: w3resource The string in reverse are: ecruoser3w program in C++ to count the letters, spaces, numbers and other characters of an input string. Sample Output: Enter a string: This is w3resource.com The number of characters in the string is: 22 The number of alphabets are: 18 The number of digits are: 1 The number of spaces are: 2 The number of other characters are: 1 Click me to see the sample solution

program in C++ to create and display unique three-digit number using 1, 2, 3, 4. Also count how many three-digit numbers are there. Sample Output: The three-digit numbers are: 123 124 132 134 142 143 213 214 231 234 241 243 312 314 321 324 341 342 412 413 421 423 431 432 Total number of the three-digit-number is:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

Explain the similarities and differences between NPV, PI, and EVA.

Answered: 1 week ago

Question

Answered: 1 week ago

Answered: 1 week ago