56. Write a program to print the odd number between 1-100 and find their average.
Q: Q1) (A) If y is (2,4,......, 10) Write a program to print the values of x. X = Write the values of x…
A: no programming language is mentioned, I am using Matlab. Code: y=2:2:10…
Q: Write a program to insert the first number and the second number, then calculate the square and cube…
A: Code Screenshot :
Q: 07: Write a program to read 3 numbers, and write the largest and smallest numbers. 08: Write C++…
A: #include <iostream> #include <conio.h> using namespace std; int main() {…
Q: Q2/ If x from (1-10) write a program to print the summation of every two consecutive even numbers…
A: It is defined as the numbers that follow each other continuously in the order from smallest to…
Q: 1- Write a program to find the average of 50 numbers and print the result.
A: Note: We are only allowed to solve one question in one post. I am solving the first one here. please…
Q: Write a program to input 5 numbers from keyboard and find their sum and average. The program should…
A: Code: #include <iostream> using namespace std; int main(){ while(true){…
Q: 1- Write a program to find the average of 50 numbers and print the result. 2- Write a program to…
A: As per the question, 1. here the program is written in java that finds the average of 50 numbers and…
Q: 3- Write a program to print the days of the week when we enter its number
A: Module VBModule Sub Main()dim n as integer = System.console.readline() select case n case 1…
Q: 10. Write a program that computes the sum: 7 k! R = -2 + k
A: code :- import mathvalue = 0.0 def factorialofvalue(n): return 1 if (n==1 or n==0) else n *…
Q: Q4. Write a program to read a 10 number and calculate if it is prime or not?
A: As there is no programming language mentioned so i attempted this program in c++ In program user…
Q: Q2: Write a program to input an integer number and find if it is a primary number or not
A: primary numbers are the prime numbers only that are divided only by 1 and itself. OR they have…
Q: 3. Write a program to compute the sum of all odd natural numbers in the range 51 to 100 (both…
A: logic:- set sum=0 iterate from i=51 to 100 check if i%2==1 (for odd condition)…
Q: Exercise 9: Write a program to calculate the area of a triangle given the length of its three sides…
A: I will be taking input from user all three sides and then refer below for code: import math…
Q: Q1: Write a program to enter (15) numbers by using inputbox satement, then find (1):the average of…
A: # creating an empty array to store the values of input textboxes.array = []positive=[] #for storing…
Q: b Write a program asking the user to enter five numbers. Check whether number entered has been…
A: Sample Response: //Programming language: C++//Tested on: CodeBlock IDE#include<iostream>using…
Q: Q6/ Write a program to find the summation of the numbers between 1& 100 by using: (a): while…
A: While loop is a pre-test loop, it first test a specified conditional and as long as the conditional…
Q: B: write a program to enter two numbers and print the largest number.
A: Introduction the question is about programing language of visual basic and here is the solution in…
Q: A- Write a program to check the entered number by user whether it is postive or negative or neutral.
A: A- Give a program which takes a number and the program will print whether the number is positive,…
Q: 02: Write program to read in the values of a, b, c then compute the root values (x) of the equation:…
A: Answer the above program are as follows:
Q: using R Studio Write a program to print the numbers from 1 to 100 and print "Double" for multiples…
A: R code for (n in 1:100) { if (n %% 2 == 0 ) {print(paste(n,"Double"))} else if (n %% 3 == 0)…
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: Q4 / write a program to enter two numbers and print the largest number.
A: C program to enter two numbers and print the largest number
Q: Q4: write a program to read 10 numbers .and print all number is a prime
A: As No Programming language is mentioned, writing this program in C++ Code : #include…
Q: 7. Read input a string from the user and compute the sum of the count of characters '(' and ')' in…
A: #include <iostream> #include <conio.h> #include <stdio.h> using namespace std; int…
Q: Write oop program to read 10 numbers and find the summation of first five numbers , and…
A: /*C++ Program to read 10 numbers and find the summation of first five numbers , and multiplication…
Q: 3. Make a program to display all EVEN numbers from 1 - 100.
A: The question has been answered in step2
Q: 5. Write a program to find the of x where : x = 2*A+ 3*B -10
A: Required: A program to solve the given equation. Required code with comments for explanation and…
Q: 7. Make a program that will convert an inputted number in inches (in.) and display its equivalent…
A: The problem is based on the basics of C programming language.
Q: Lab p-4) Write a program that prints the sum of the even numbers and the products of odd numbers on…
A: function main(): Start Declare number, arr[10], i, sum = 0, product = 1 Read number Read integers…
Q: C: Write a program to find the summation of the numbers from 5 to 15.
A: Step 1 : Start Step 2 : Declare the variable sum to hold the calculated sum and variable n for the…
Q: Write C ++ program, to read A (n, n) of numbers, then put 5 instead each odd positive number.
A: Required: Write C ++ program, to read A (n, n) of numbers, then put 5 instead each odd positive…
Q: Write a program to to calculate mean/average of five number
A: NOTE: That no language is mentioned so the program is written in C++ Language 1. Write a program…
Q: Q4/ Write a program to find a minimum number between fifteen (15) numbers.
A: Since programming language not mentioned, using C++ language.
Q: 2)If a five-digit number is input through the keyboard, write a program to print a new number by…
A: Below is the C++ code. Approach of Program: Include a necessary header files and use a namespace to…
Q: 1- Write a program to compute the value of y: y = 1+++ 3 25 .+ Where 3 49
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining…
Q: Q1\ Write a program to convert temperatures from Fahrenheit to Celsius and Kelvin.
A: While doing programming in any programming language, you need to use various variables to store…
Q: 4. Write a program to calculate and print the sum of all multiples of 7 from 1 to 100.
A: Pseudocode for the given problem FOR i := 1 to 100 DO // for loop that…
Q: Q5): write a program to read an integer from 1 to 7 and print th name of the day in a week.
A: Using array of weekdays: Or alternative code using switch statement:
Q: H.w.1: write a program to print the numbers from 1 to 50 by using for. : write a program to read 5…
A: #include <iostream> using namespace std; int main(){ for(int n=1;n<=50;n++){ //i from 1…
Q: Q6: Write a program to find value of (U, 0 and p).
A: Program code provide below makes use of two header files. One for the standard input and output and…
Q: b. the following program is to count the positive and negative number from list of 70 number: input…
A: We have to take 70 numbers as input and check whether the number is positive or negative Here, we…
Q: Q4: Write a program to calculate (Z) from the following equation Z=-A.T2 A== F=1.58 T=53 Sec. M 20…
A: Answer Code in C++ #include <iostream> using namespace std; int main() { float F =…
Q: Write ae program te compute the factorial of a number, and use it to print the factorials of the…
A: Note: As per the Bartleby guideline I can only solve the first question. Please post the rest of…
Q: 1. Write a program to read 2 numbers. Display the greatest of all.
A: Note: Answering the first question as per the guidelines. Input : Read two integers Output :…
Q: Q5: write a program to read 3 numbers and .print max number
A: As no programming language is mention i am doing it in Python #asking user for…
Q: Using C++ Write a program that prints all prime numbers less than 100.
A: Program: #include <iostream> using namespace std; int main() { int i, Number, count;…
Q: Given the following program segment, if (number > 1000) { if (number % 2 0) ==
A: number = 1024 so it satisfy the if condition i.e., number > 1000 Then it check that number is…
Q: Q5. A) Write a program to read Celsius temperature and convert it to Fahrenheit using the equation:…
A: ⦁ The given equation is C=(F-32) * 5/9⦁ We have to convert C to F i.e.,) celsius to fahrenheit⦁…
Q: Q4. If y=x³-2 Write a program to calculate values of y for every x if x is from 1 to 10
A: Algorithm: Start. Initialize the value of x. y = x^3 - 2. Print the value of y. Exit.
C++
Step by step
Solved in 4 steps with 4 images
- 2. Write a program to check whether the given number is even or odd.Create a program to accept a number and identify if this number is even or odd numberWrite C++ program to read two numbers and print multiple if the one of two numbers are multiple of others otherwise print not multiple. Q2/ Write C++ program to read characters and determine the circumference and area of three geometric shapes. Use character 'A' for square shape and 'B' for rectangular shape and 'C' for circular shape. Also the program reads the dimensions of each shape in meters (Use switch only).
- Using C++ Write a program that prints all prime numbers less than 100.1. Write a program that converts the angle from degree to radian and displays each value. by using c++ 2. Write a program that inputs a sentence from the user and counts the number of words and characters in the sentence. by using c++(Use Dev C++) Write a program to display the leap years in the years 2000 to 2099. A leap year is a year that is divisible by 4, but if it is divisible by 100, it should also be divisible by 400.
- Write a program accepts numerical value x from 0 to 100 as input and computes and displays the corresponding letter grade given by the following tableWrite a program to read 2 numbers. Display the greatest of all.1_ Write a program that reads a character and prints it only if it is 'y' or 'Y' (Simulation of If-Else then structure). 2_Write a program that prints the odd numbers between 1 and 10 using loop (Number 1 ASCII code is 49).
- Write a program to find the difference between the sum of the even and odd numbers for the numbers from 1 to 100 .Write a program accepts numerical value x from 0 to 100 as input and computes and displays the corresponding letter grade given by the following table: 21 | Pagee) Print NATURAL numbers from 5 to 25 without using a single digit in the code. Note: Use strings in this case. In JAVA language.