Q2: Write a C program to enter month number between (1-12) and print number of days in month using if else.
Q: write a program in C++ to print the numbers between 200 and 300 that are :dividable on 9 using…
A: Code: #include <iostream>using namespace std;int main(){ int num=201;//initially num=201…
Q: The volume, V, of a box is given by the formula V where L is the box’s length, W is the box’s width…
A: Step 1:- volume of the box=length*width*height Use the for loop to accept the 10 values of length,…
Q: Q2: Write a C program to enter month number between (1-12) and print number of days in month using…
A: Code (Using if else): #include<stdio.h> void PrintDays_if_else(int); void…
Q: The volume, V, of a box is given by the formula V where L is the box’s length, W is the box’s width…
A: The volume, V, of a box is given by the formula V where L is the box’s length, W is the box’s width…
Q: Q1: By using case statement, write a C++ Program to accept double odd integer numbers (30-40) and…
A: #include<iostream>#include<cmath>using namespace std; int reverse(int v,int lim){…
Q: Let X and S denote any valid C++ expressions. Then, the below statement is equivalent to: do (X}…
A: The given requirement is to select one correct answer from the given options a,b,c,d and e . The…
Q: Q10: Write a C++ program, using function, to test the year if it's a leap or not. Note: use y % 4 ==…
A: Note: Multiple Question asked solving Q10,repost Q11 code: //include the required headers#include…
Q: Write a program in C to find the length of string S1 and compare the string length with S3
A: Since nothing is mentioned about s3, I am assuming s3 as a string and comparing s1 and s3 after…
Q: 1. Write C++ program to print numbers from 10 to 0 using (for) statement. 2. Write C++ program to…
A: #include <iostream> using namespace std; int main(){ for(int n=10;n>=0;n--) //n from 10…
Q: iv) Input a string str from the user. Write a C++ program, to replace all the occurrences(if any) of…
A: In this program we have to write a C++ program which will replace a substring to a another string.…
Q: The X and Y coordinates of 10 different points. are entered through the keyboard. Write a C program…
A:
Q: Q2) Write a C+ program to convert the height and weight of a person from feet and pounds units into…
A: According to the guidelines we are allowed to answer only the first question. We will use the…
Q: write C++ code for the fibonacci sequence of numbers where user enters the number to be arranged…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: Q1: Write a C++ program to check whether an input alphabet letter is not vowel using switch…
A: #include <iostream> #include <conio.h> using namespace std; int main() { char ch;…
Q: Q2 Write a C++ program to calculate commission for the salesmen. The commission is calculated…
A: Program objective: - To find the sales commission according to the given data. Algorithm: - Start…
Q: :Q10: Answer the following Question 15 نقطة Write a C++ program that displays the results of the…
A: Given: arrow_forward Editable Source Code: #include <iostream> using namespace std;…
Q: Q2: Write a program in C++ to read ten students' name and degrees the calculate the average degree…
A: The iostream is the header needed as the fundamental I/o streaming item. Namespace allows you to…
Q: Program Set 3 Write a C Program that asks the user to enter a US dollar amount and then show how to…
A: Given :
Q: :Q10: Answer the following Question 15 نقطة Write a C++ program that displays the results of the…
A: C++ At Bell Labs, Bjarne Sufficient evidence developed the programming language C++ in 1979. Given…
Q: Q3/ B/ Write a C++ program to find the value of (z) according to the conditions of x and y. - x + y…
A: Approach: Include necessary header files in the main method declare the variables x,y,z get the…
Q: Time left 047:29 Write a complete C++ program that prompts the user to enter a string, and prints…
A: start input string using if else print appropriate statement stop
Q: Q3: Write a C++ program to read item price (price) and calculate the value of discount (dis) as…
A:
Q: Q1: Write a C++ program to Calculate the Area of Circle? Q2: Write a C++ program to read three…
A: Part 1) Area of Circle ===================== #include <iostream> using namespace std; int…
Q: Q Lab: Write a C program to enter 3 names from the keyboard and find the most repeated letter in the…
A: Algorithm: 1. Start 2. Read 3 names 3.We declared a Freq array of size 256, which will initially…
Q: Q2) Write a C++ program to convert the height and weight of a person from feet and pounds units into…
A: We are going to code in C++ to convert the height and weight of a person into meters and kilogram…
Q: B-A- Write a program in C++ to determines the patient if he is infected with corona virus or not…
A: #include<iostream> using namespace std; int main() { string name; int temp;…
Q: Q9. Write c++ program to find the value of the amount In(Y) if you know that (Y + X – 1)² (Y + X –…
A: Step 1:- Program Approach:- (i)Declare two header file (ii)Math.h header file is used to perform the…
Q: Q8: Write C++ program to read an integer from 1 to 12, and print out the value of the corresponding…
A: C++ Code: #include <iostream> using namespace std; // here is the main function int main(){int…
Q: Q3/ Write a C++ program to find the summation of three numbers entered by user.
A:
Q: Q4/Write C++ program to read many numbers, the program is stopped when you enter number equal to…
A: C++ code to find sum and average of given input numbers till the number is zero, given below.
Q: :Q10: Answer the following Question 15 نقطة Write a C++ program that displays the results of the…
A: PROGRAM CODE: #include <iostream> // include header file to include input…
Q: Exercise #2: Using for staement. Write a C++ program to find and print the sum of values greater…
A: #include <iostream> using namespace std; int main(){ int arr[100]; int k, size, sum = 0,…
Q: Swap the second and second last character of the string given below using a C++ program and print…
A: Given String: "Question2" Requirement: Write a program in C++ to swap the second and second last…
Q: 5. Write a C program to read sales amount and salary. calculate the bonus amount for employee using…
A: In the given program, the variables salary and sales_amt are used to store the salary and sales…
Q: Ql1 write a Program to check whether an integer number is positive or negative using (if) statement
A: Algorithm: Start Read a number n If n<0, print n is negative else print n is positive Stop
Q: blöi 10 Write C program to find and print the number of fraction digits in a real number. For…
A: Code With Explanation: //required header files#include <stdio.h>#include…
Q: Q4) Write a program in C++ language to obtain the equation below, for value of i (1 to N), by using…
A: // C++ program to perform operation on numbers from 1 to N #include…
Q: Q2] write a program calculates the value of( Q)from the following series x3 Q= 1+7 x+ + + ... 3! 4!…
A: #include <math.h>#include <stdio.h> double sum(int x, int n){ double i, total = 1.0;…
Q: Q3] ( Write a program to enter a value of x and compute the value of y where x if x ≥ 0 -x if x<0 y
A: In mathematics function is the expression or rule or law which defines the relationship between the…
Q: You have been given 10 body temperatures of 10 individuals. Write a C# program that reads these body…
A: Algorithm: 1] Initilialise an array which stores the body temperatures of 10 people. 2] Display the…
Q: Q3\ Write a C+ program that takes the number of the month as an input then shows the name of the…
A: According to the question below the program:
Q: 1. The Boston Electric Co. charges for electricity as follows: Kilowatt-hours Cost 1 - 50 51-200 P…
A: Algorithm : Step 1: declare character array. Step 2: declare variables. Step 3: ask for the…
Q: Q2) Write C++ program to print months of year using ( If..else )?
A: #include <iostream> using namespace std; int main(){ int number_of_month;…
Q: Q1;- write c++ program to read an integer number and check if it is positive or * ? negative إجابتك…
A: Question 1 Answer: #include<iostream> using namespace std; int main() { int number; cout…
Q: Q1: Write a C program to input amount from user and print minimum number of notes (ID. 50000, 25000,…
A: c program is as given below :
Q: Q1: Write a c++ program to enter number and test it, if the value of the number less than 20 print "…
A: Code: #include <iostream>using namespace std;int main(){ int num;//declaring integer…
Q: Q2: Write a C program to enter month number between (1-12) and print number of days in month using…
A: Required: Required code with comments for explanation and screenshot of both code and output has…
Q: Question 2: Write a C++ program to generate a random number in the range [10000, 20000]. Display the…
A: C++ program to solve the given problem is below.
Q: 1. Write C++ program to type numbers from 10 to 0 using do/while statement. 2. Write C++ program to…
A: #include <iostream> using namespace std; int main(){ int n=10; //initialize n to 10…
Step by step
Solved in 4 steps with 2 images
- by using c++ please Write a program that inputs a sentence from the user and counts the number of words and characters in the sentence.12. Write a program in C++ to input month number and print number of days in that month.Q1: Write a C++ program to ask the user to enter an alphabet to check whether it is a vowel or not, then display the result on the screen.
- Q2: Write a C++ program to ask the user to enter a number and Check Whether Number is Even or Odd using while loop.Q10/ Write a program in c++ that converts Celsius to Fahrenheit according to the following equation: F = 9/5 C+32 .By using functionsHW: Write a C++ program to calculate the value of y form the following equation when C and D are integer values. C D C D L
- Q 1: Write a C++ program which inputs two numbers from the user, and display the maximumof them.Question 2. Swap the second and second last character of the string given below using a C++ program and print the string after swapping. "Question2"Q1) Write C program to print calendar for the given year.
- write C++ code for the fibonacci sequence of numbers where user enters the number to be arranged and the number of termsQ2. Write a Program to that will take input from the user and tells if the user entered Even or Odd number. Q3. Write a C++ program that takes input week number (1-7) and print the corresponding day of week using C++, starting with Monday. Q4. Write a program which take a number from keyboard and checks the number whether that number is less than 100 or not if that number is less than 100 than check that is it less than 50 or not.Using do- while code in c++The height, as a function of time t, of a projectile fired with an initial velocity v straight into the air is given by height = vt - 1/2 gt2 where g is the gravitational constant equal to 32.2 ft/sec2. Using the formulas, write a program that displays a table of heights for a projectile fired with an initial velocity of 500 ft/sec. The table should contain values corresponding to the time interval 0 to 10 seconds in increments of one-half seconds.