Q2: Write a C program to enter month number between (1-12) and print number of days in month using if else.
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: Q2: Write C++ program to read two integer numbers, and read theoperation to perform on these numbers
A: I have used the four operations(+,-,*,/) here. Algorithm : Step 1 : declare variables. Step 2 : ask…
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: Q1:- From the given figure, write a program in C++ LANGUAGE to read the height of cylinder then…
A: Program code: // include the required header files #include<iostream> using namespace std; //…
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: 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: Write C++ program to read an integer from 1 to 12, and print out the value of the corresponding…
A: I have provided code in step2.
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: 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: 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: 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: Ex Write C++ code that print the umbers between 1 to 100 that dividable by 3 in vertical line, then…
A: //program to print the numbers between 1 to 100 that dividable by 3 in a vertical line, then print…
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: 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: 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: Q1- Write a program to enter any three numbers, then fınd their summation and the average.
A: "Since you have not mention any programming language, so we will write our program in C++ language."…
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: 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: 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: Q2: Write a C++ program to compute the value in the "result" variable. For calculation of the result…
A: Below is the required code in C language. Program Approach: Include necessary header files to get…
Q: 11. Using ternary operators in C++, write a program to check whether a positive integer entered by…
A: Answer: I have done code and also I have attached code and code screenshot as well as output
Q: Q1) Write C program to print calendar for the given year. Write your Code here ê
A: Code to print the calendar of the year are as follows: Please find the explanation of the code…
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: Q.1. Write a program in C++ which inputs a number from the user, and based on the number entered…
A: Write a program in C++ which inputs a number from the user, and based on the numberentered display…
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: iv. Write a C++ program that inputs current day and month from the user. It then calculates and…
A: Programme : #include<iostream>using namespace std;int main(){ int n=0,d,m,y; int…
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: x and y Q4/A/ Write a C++ program to find (z) according to the conditions belong as below: Va? + b2…
A: #include <math.h> // to use pow, log , exp , sin, cos and sec function#include…
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: Q1. Write a c++ program to calculate the bill after adding sales tax, if the basic cost is input by…
A: As per company guidelines we are suppose to answer only 1 question. Kindly re-post other questions…
Step by step
Solved in 3 steps with 1 images
- 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.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"
- 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.Q10/ Write a program in c++ that converts Celsius to Fahrenheit according to the following equation: F = 9/5 C+32 .By using functionsQ1 : Write a program in C ++ to evaluate the equation below : Y = + sin x - x modulus2 3
- Q2. 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.HW: 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
- Q1) Write C program to print calendar for the given year.Q 1: Write a C++ program which inputs two numbers from the user, and display the maximumof them.Which of the following are correct C++ statements? (10) cout "Programming with C++!" endl; cout " Programming " " with " " C++" endl; cout " Programming" " with C++!" '\n'; cout "Programming with C++!' endl;