Q.6 Write a C++ program that takes 6 values from user and makes a multiplication table of those numbers till x6. Example: Please Enter 6 numbers 1 23 4 5 6 Output: ---- 1* 1 2 4 6. 2* 4 6. 8. 10 12 3* 3 6. 9 12 15 18
Q: 2. Write a C++ program with the main() function as follows: - ask the user Enter numbers for…
A: As per guidelines we are supposed to answer only one question. Kindly repost other questions as a…
Q: Writ a C++ program to enter five integer numbers and find: 1- The largest one 2- The average of them…
A: Write a C++ program to enter five integer numbers and find: 1- The largest one. 2- The average of…
Q: Q2: Write a C++ program to read three integer numbers A, B and C then find the result of…
A: #include <iostream> using namespace std; int main(){ //declaring variables int A,B,C,Z;…
Q: Q1: Write a C++ program to compute the sum of the specified number of Prime numbers. For example,…
A: Ans: Code: #include <iostream>using namespace std; int main(){ const int MAX = 1000000;…
Q: • Q1:Write a C++ program that reads a number and determine if it is positive or negative.
A: Note : kindly, upload remaining question again . C++ Program for Q1 : #include…
Q: EXERCISE 2: Write a C program to evaluate the following equation: i=m j=i i=1 j=n Where m and n are…
A: The program ask user to enter the value of m and n. Outer loop is for the first summation expression…
Q: 18 - What is the output of the following code segment in C ? int a=5%; c= fork(); if (c==0) { a =…
A: When the fork() function was called. for the child process, 0 was successfully initialized to c for…
Q: 4. Write a program that computes the following equation: 1 2 n y = 1+=+ x2 ... 5. Write a C++…
A: We can use simple for loop to solve these problems. Follow the below code and explanation for better…
Q: 3.Write a C++ program that inputs 10 integer numbers and prints out the two largest entered values.
A: Here is your code
Q: Write a C++ program to generate a multiplication table up to 15?
A: Provided the C++ program to generate the multiplication table up to 15 as shown below. Also attached…
Q: Q3) Write a c++ program to implement the following equation. 2 3 4 100 %3! n! +1 n! + 2 n! + 4 n! +…
A: In this question, we have to find the value of y after evaluating the expression. We will run the…
Q: 4. Write a C++ program that reads an integer X, then calculates and outputs the sum of the following…
A: Here is your code
Q: Write a program that enters a set of numbers and calculates only the frequency of the number 5,…
A: I give the code in C++ along with output and code screenshot
Q: 3. Write a C ++ program that generates and prints the following form: A.1 A.2 A.3 A.4 A.5 B.1 В.2…
A: If an operation is performed on two datatypes, the result will be of datatype with higher precision…
Q: Write a complete C program for the following question äbäi 16 Write C program to find the result of…
A: Program: #include <stdio.h> #include <math.h> int main() { int A,n; int X=0;…
Q: 2. Write a program in C to display the n terms of odd natural numbers and their sum. (use do while)…
A: Step-1: Start Step-2: Declare variable n, i=1, count=1, sum=0 Step-3: Take input from user for n…
Q: 3. Write a C++ program that computes the power of an integer number. usejostream
A: First we will input an integer number. Then we will input the power. And with the help of pow…
Q: (a) Write a program in C Langunge to read an integer number (X) to calculate and print Y values,…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Q: 1. Write a C program to generate 5 random numbers in the range [1,1000] and print the numbers and…
A: Given C program to print random number in range [1,1000]
Q: write a c program that asks user to enter integer 10 numbers then find the numbers that greater than…
A: Program approach:- //header file. //main function. //print numbers. //print the number greater than…
Q: Q3: Write a C program to find the value of X in the equation below for any entered real numbers (A…
A: Given:
Q: Write a single C++ statement that corresponds to the two MIPS as add f, g, h add f, i, f O h = g…
A: Here in this question we have given two assembly instructions and we have asked to write a single…
Q: Q3:Write a C++ program to read X and find : Z= X - 2 * cos(X).
A: Objective: This program should ask the value of X and compute the result of the following equation,Z…
Q: Q3/ B/ Write a C++ program to find the value of (z) according to the conditions of x and y. Vaz + b?…
A: #include<iostream> #include<cmath> //including cmath header because…
Q: 3. Write a C program to print generate 5 positive random numbers less than 100 and also print the…
A: Write a C program to print generate 5 positive random numbers less than 100 and also print the…
Q: Write a C - program that accepts two integers from the user and then prints the sum, the difference,…
A: - We need to code the asked operations.
Q: 33. In the C programming language, write a program to input an integer x and print the value of…
A: Write a program in C language to input an integer x and print the value of sin(3*x)+cos(3*x) in the…
Q: Write a C program using if-else. The program reads one character ch. Then it reads one real number…
A: We are give two condition inside if-else cases. 1) If user inputs character a or A. 2) If user…
Q: Write a C++ program that displays the following multiplication table: 9 7 6. 4 3 2 1 9 81 72 63 54…
A: According to the question we have to write C++ code:
Q: Write a c++ program to read 20 different numbers and find the maximum number among them? then if it…
A: Algorithm: Start Read 20 numbers in an array Take first element in the array as max Iterate…
Q: Q1 \ Write a complete C++ program that solves the following equation y = 12x11 + 10x° + 8x7 +…
A: Given, y=12x11+10x9+8x7+6x5+4x3+2x Program description: math.h header file is included for using the…
Q: a) Write a program that accepts two numbers and print their sum if first number is an odd number, b)…
A: a) #include<iostream>using namespace std;int main(){ int n,m; cin>>n>>m;…
Q: Write a C++ program that prompts the user to enter two integer numbers and the program should print…
A: Program Code: #include<iostream>using namespace std;int main(){ int…
Q: Q1/ Write a C ++ program to calculate the value of W from the following relationship using the for…
A: Algorithm: Start Read n Read x Initialize W=0 Initilaize i=1 Iterate the loop from i=1 to i=n. If…
Q: Write a C program (using DO WHILE loop) to print inputted number by the user while showing only 10…
A: I give the code along with output and code screenshots
Q: Q1:Write a C++ program that reads a number and determine if it is positive or negative.
A: According to the guidelines , I can only solve the first question. Algorithm : Step 1 : declare…
Q: Write a C that reads in 10 integen number and prints back those numbers revesed that can be divided…
A: Using for loops we can solve this problem.
Q: 4. Write a C++ program to generate 3 random integers in the range [1,100] and for every random…
A: Write a C++ program to generate 3 random integers in the range [1,100] and for every random number,…
Q: 6- Write a C program to read the value of an integer m and display the value of n is 1 when m is…
A: #include <stdio.h>void main(){ int m,n; printf("Input the value of m :");…
Q: 3. Write a C++ program to print the week days from the week number(1= Saturday, 2= Sunday,.. 7=…
A: We are going to write a C++ code which will print week days based on weekday number given based on…
Q: Q4/ A/ Write a program in C++ to find the sum of the series: a = 5 + 2 + 4 +8 + 10 + …· +n ...
A: Please find the answer below :
Q: Q2) Write a C++ program that finds the value of W defined by the following equation: ((a + b) – 3)2…
A: I have provided default values of a, b, x and y as an example to find the value of W using the given…
Q: Hello, in C Write a program that reads any infix notation (without parentheses) and converts it…
A: The Answer is in step-2.
Q: Q4: Write a program that computes and print the sum for an input integer n,a,c . E fx = c, + c1 (x -…
A: In this code; the sum of Taylor series is calculated by the user input with values of n,x,c and a.
Q: Q2: Write a C program using Function to list all the factorial numbers less than or equal to an…
A: Factorial of a number is the product of numbers from 1 to that number
Q: 1. Write a C++ program to compute the following series. The value of n should be determined by the…
A: As per our guidelines we are supposed to answer only one question. Kindly repost the remaining…
Q: Exercise 4: Write a C++ program that reads all the sides of triangle and prints whether the triangle…
A: Step 1 : Declare three variables int a,b,c; Step 2 : ask user to enter two shortest side and store…
Q: Write a C++ program that takes a 4-digit number from user as and input and displays all the…
A: #include<stdio.h>int main(){int i,j,k,l,m,n; printf("Enter the digit number : "); scanf("%d",…
post genuine answer
Step by step
Solved in 3 steps with 1 images
- Write a program in C that displays the classic BINGO game, displays a BINGO card (5x5 square), and tests the bingo card for a winner via 2 users Steps: 1- Ask user 1 to enter 24 numbers between 10-40 no duplicates / check for range and repetition 2- Ask user 2 to enter 24 numbers between 10-40 no duplicates / check for range and repetition 3- Design 2 BINGO cards as you see below 4- Distribute the numbers onto the 2 cards with each user input with 0 in the middle 5- Display the 2 cards in 1 screen as you see below 6- Generate a random number between 10-40 no duplicates / check for range and repetition 7- Compare the random number with the numbers on the 2 cards 8- If the random number matches any number on each card, change the number on the card to 0 9- Check for winning cards 5 numbers in a row or column = 0 5 numbers in a diagonal = 0 all 4 corners of the card = 0 if any of the players won, display who is the winner and exit the program if the 2 players won, display both are…Write a C++ program that takes a 4-digit number from user as and input and displays all the combinations of those digits.For Example: Enter number: 5321Possible Combinations are:5321, 5312, 5231, 5213, 5123, 5132 3521, 3512, 3251, 3215, 3125, 31521523, 1532, 1253, 1235, 1325, 1352 2513, 2531, 2153, 2135, 2315, 2351In C++, an int is in the range 0 to 65535. But what if we need to add larger integers? Compute the sum 2345566777844567 + 9999988777765768009998. Write this function:string add(string a, string b) where a and b are strings expressing integers and the function add(a,b) returns a string signifying their sum. Strings a and b can have at most 100 characters. Write a main program that loops, asking the user for a and b. The program should terminate if the user enters “done” what asked for “number” a.
- In C++, write a program that checks whether there are duplicated numbers within three user inputted numbers, and return if "all the numbers are distinct", "all numbers are the same", or if "there are two are duplicated numbers."Write a simple program in C++ that lets the user input a single integer n where 1 ≤ n ≤ 100000. The program should print the sum of the first n prime numbers. In the first example below, the first 5 prime numbers are 2, 3, 5, 7, and 11. Example #1: Enter integer: 5 Prime sum: 28 Example #2: Enter integer: 100000 Prime sum: 62260698721Write a C++ program that uses the following for loop: for ( int i = 0; i < e; i++ ) { for ( int j = 0; j < f; j++) cout << *(*(b+i) + j ) << “\t”; cout << endl;} To print the following multiplication table: 1 2 3 4 5 6 7 8 92 4 6 8 10 12 14 16 183 6 9 12 15 18 21 24 274 8 12 16 20 24 28 32 365 10 15 20 25 30 35 40 45 In your program, it is given that e = 5 and f = 9.
- Write a code in C++: Write a program to factor a polynomial of the form x² + bx + c, where b and c are integers AND also modify the program so that it can also factor polynomials of the form ax2 + bx + c , where a, b, and c are integers. For example, the polynomial "- 2x² - 3x + 2" can be factored as: "- 2x² - 3x + 2 = (-2x + 1)(x + 2) = - (2x - 1)(x + 2)". The output at the end should be this exact quote: "- 2x² - 3x + 2 = (-2x + 1)(x + 2) = - (2x - 1)(x + 2)"Write a C++ program that Ask user to enter an integer number and then determine whether the number is prime or not? Note: a number is prime that it is only divisible by 1 and itself. such as 3,5,7,13,..Write a C++ program that accepts a positive integer (orstring) as input and then displays a new number obtained by replacingevery pair of repeated adjacent digits by a single digit. For example,the integer 558834226 has three repeated adjacent digits: 55, 88 and 22.This means that your program should display the integer 583426 insteadof (558834226). You may assume that no digit is repeated more than twice.
- int p = 200;int q = 100;if(p%2==0){q = q/50;}else{q = q/100;}q = ? What will be the final value of q after execution. In C++Encryption is commonly used to disguise messages on the internet. A Caesar cipher performs a shift of all of the characters in a string (based on their ASCII values, see Table 2.1), e.g. h e l l o → m j q q tThe example shows a shift with a distance of 5characters, i.e. h(ASCII:104) → m(ASCII:109)Write a C/C++ program that asks the user to input a line of plaintext and the distance value and outputs an encrypted text using a Caesar cipher, with the ASCII values range from 0 through 127. Use underscores (ASCII: 95) to represent space characters.Underscore characters should not be encrypted, and any character that is encrypted may not become an underscore. In this case, the character should be changed to the next character in the ASCII table.The program should work for any printable characters.NB: No strings (datatype) or library functions may be used.See Figure 2.1 for example output.Write a C++ program called Fibonacci to display the first 20 Fibonacci numbers F(n),where F(n)=F(n–1)+F(n–2) and F(1)=F(2)=1. Also compute their average. The output shall looklike:The first 20 Fibonacci numbers are:1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765The average is 885.5