13. Write a program that reads in two integers and determines and prints if the first is a factorial of the second.
Q: Q3: Write a program to print multipliers of 5 (from 5 to 50)
A: Imports System Module Module1 Sub Main() Dim number As Integer number = 1…
Q: In Python write a program to read input a binary string and finds the difference in the count of '0'…
A: Write a program in Python to read input a binary string and find the difference in the count of '0'…
Q: Q1/ Write program to find temperature (W) that found from T= 5S°+2S+3 T= 2S3+3S?+5 at S100 Where…
A: #include <stdio.h> int main(){ //printf("Hello World"); int T,S,W,K;…
Q: 5. Write a program to print even numbers from 1 to 10, print every number in a separate line.
A: use loop to iterate from i=1 to 10. use if statement and mod operator to check if i%2==0…
Q: 2. Write a program which takes names of five countries as input and prints them in alphabetical…
A: c program which takes string as a country name takes 5 string and then output countries name in…
Q: f) Prompt the user to enter a string s and an integer n. Write a program to add n spaces in starting…
A: Given : An integer n and a string s taken input from user. Requirement: Write a program in C++…
Q: 18. Write a program that will display the following pattern, given the Example: If n =5, output…
A: C code to print given pattern is as below.
Q: 7. b) Write a VB 6 program that should take a positive number n as input. Your program should…
A: The Visual Basic code is given below.
Q: 4)Write program that input the user age and print the sentence: a) You are child if the age is less…
A: There is not mentioned any programming language so I used JAVA Step 1 : Declare a variable age and…
Q: 7. Write a program that will check and print if the person is a regular passenger, student or senior…
A: Algorithm: Start Read number If number is 1, print regular passenger Else if number is 2, print…
Q: 2. Write a program that generates a two-column table showing Fahrenheit temperatures from -40F to…
A: The given program is in java.
Q: 17. Write a program that calculates and print the numbers (from 0 to 10) and it squares and cubes.
A: Mathematically we know that square of a number is its multiplication by itself. For example if n is…
Q: v. Write a program that inputs the age of different persons and counts the number of persons in the…
A: Code : #include<stdio.h> #include<conio.h> void main() { int i,n,age[100],count=0;…
Q: Q2:::write a program that computes ,prints and plots A=√X, B-log X; C-In X; D=cx; E-3X; F=X7 Where X…
A: x=1:20 A=sqrt(x) plot(x,A)
Q: 1. Write a program that reads in two integers and determines and prints if the first is a factorial…
A: Please find the answer below
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: Assignment 3 Write a complete program that accepts two integer numbers num1 and num2, where num1 <…
A: You didn't specify any language for the problem, so i am doing it in C++ programming Langauge.…
Q: Q2// Write C++ program to read three numbers and find the sum of odd numbers that are dividable on 3…
A: Required: Required code with comments for explanation and screenshot of both code and output has…
Q: (Use Dev C++) Write a program that inputs three integers from the keyboard and prints the sum,…
A: Include all the required headers in the program. Declare all the required variables. Prompt to take…
Q: Q7: Write a program to read 3 numbers, and write the largest and smallest numbers.
A: Program description: n is user input which stores the number of integers to be read. a is an integer…
Q: Q/ Write a program that finds the sum of the odd numbers and the sum of the even numbers among the…
A: I give the code in Python along with output and code screenshot
Q: 6- Write a program to input number of 3 digits and check any digit is even convert it to 3 and any…
A: Program is provided in JAVA language 1. Enter a number 2. Extract digits from number 3. Check…
Q: Q5: Write a program takes two integers numbers from the user and prints the following: 1-The result…
A: Note: Below is the required program in java language. Program Approach: Importing necessary package…
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: Write a Program to find all Roots of a Quadratic Equation
A: a,b, c are coefficients where x can be calculayed by: x = [-b +- (b^2 - 4ac)^1/2] /2a D = b^2-4ac is…
Q: Q1/A-Write a program to compute the mass flow rate of a fluid (in kg/sec) through a thermal unit…
A: Code: Dim A as DoubleDim M as DoubleDim Po as Double Dim K as DoubleDim R as DoubleDim T0 as…
Q: Question 5: Write a program that inputs four strings that represent floating-point values, converts…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED C FOR THE SOLUTION Define header…
Q: 3) Write an algorithm for a program that inputs the of grades of an arbitrary number of students and…
A: 1) Algorthm that inputs the grades of arbitary number of students and output highes grade Declare…
Q: 2. Write a program that decides whether a leap year is a number requested from standard input. A…
A: #include <iostream>using namespace std; int main() { int year; cout << "Enter a…
Q: Q4// write a program to read four real variables, then use function for finding the largest value…
A: Algorithm:- (i) take 4 input values in array using for loop and also declare a variable called…
Q: 1. Write a program that reads two integer numbers and determines and prints if the first is a…
A: Check the remainder on dividing the first number with second number and if remainder is 0 then the…
Q: 3- Write a program which accept a number of 2 digits and check if ones digit is greater than the…
A: C++ Program for above : #include <bits/stdc++.h> using namespace std; int main() {…
Q: 3. Write a program to calculates the sum, and an average of the values of your student ID number,…
A: The problem is based on finding the sum and average of the given student id. NOTE: The result is…
Q: only Q7 in python 7. Write a program to print swapping of two numbers without using third variable.
A: Start Input two number call swap method swap (x,y): x=x+y…
Q: - Q1 /B: Write a program in c++ to print even numbers and odd numbers?... اكتب برنامج بلغة سي بلس…
A: required: Write a c++ program to print if a number is even or odd. Required code with comments…
Q: 3. Write a program to read 20 integer numbers, each number consist of 3 digits, then find the number…
A: // Taking 20 numbers of three digits and storing them to a list numbers = [] for i in range(20):…
Q: ?write a program to read 4 numbers and find the sum and average إجابتك
A: Since no programming language is mentioned, I am using python Algorithm: Start Read 4 numbers…
Q: 2. Write a program that read two integers then print the even and odd number (using functions).
A: A number is even if it is perfectly divisible by 2. When the number is divided by 2, we use the…
Q: 6. Write a program to read a number representing the time in 24-hours (i.e., 4-digits ). Then find…
A: import java.text.SimpleDateFormat;import java.util.*;import org.apache.commons.lang3.time; class…
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: Write a program that reads input until encountering either the # character or the % character and…
A: - We need to highlight the code to read the characters until # or % is seen and return the count of…
Q: Q2// Write C++ program to read three numbers and find the sum of odd numbers ? that are dividable on…
A: ALGORITHM:- 1. Take input for 3 elements. 2. Initialize a variable that will store sum with 0. 3.…
Q: Q6: Write a program to find and print the value of (f) from the following cquations for Fourteen…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read the value of θ…
Q: PP 6.1 Write a program that reads an integer value and prints the sum of all even integers between 2…
A: Given: To write a java program that reads an integer value and prints the sum of all even integers…
Q: 5. Write a program that finds the sum of the following equation: :أكتب برنامج يقوم بإيجاد المجموع ل…
A: Name of programming language is not given above problem statement hence we are going to use c++…
Q: 2. Write a program to find the Greatest Common Divisor (GCD) of two numbers.
A: Here I have defined the function named gcd(). This function takes 2 numbers as input parameters and…
Q: 02: Write program to read in the values of a, b, c then compute the root values (x) of the equation:…
A: Note: Answering the question in C++ as no programming language is mentioned. Task : Input a, b, c.…
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: Q2- Write a program to read a number (n). Then print all numbers from 0 to n that are not equal to 1…
A: #Note no programming is mentioned so i was used python programming language for i in…
Step by step
Solved in 4 steps with 2 images
- you send me an incorrect solution for those 2 questions c++ 3- Write code that checks if a number is odd or even using bitwise operators.5- Write a function that returns toggle case of a string using the bitwiseoperators in place.Q 2 : Write a C++ program which inputs a number from the user, and classify it as even or odd.For sample output, use the last two digits of your registration number.Q.3) Write a C++ code that can draw the following pattern 100 times.
- 3. Write a new main.c program that finds the least common multiple of the following five integers {20, 30, 15, 8, 24}. Hint: use the GCD of the five integers.by using c++ solve following questions. 1. Write a program that inputs age in years and displays age in days and months. 2. Write a program that inputs two times in hh:mm:ss format, adds both times and displays the total time.17. What will the following program print, if run with SPIM? li $v0, 1li $a0, 24syscall
- c# Write program that asks to enter an x numbers and sum the even numbers and odd numbers separately then print the sum?4) Write a C program to input a random number in the range [1,10] and also input numbers from the user until the user entered number matches with the random number generated. In the output, print the number of guesses in which the user input matches with the entered number.Switch case C# exerciseAssignment 1. Write C# program to print (Day/Night) program according to given D/N. Enter time of day (day/Night) : D Day
- Q 3 : Write a C++ program which inputs a number and check if it is divisible by 5 and 11.For sample output, use the last two digits of your registration number.7. Write a C++ program to find the product of the ASCII values of all digits in the string, entered by the user. You can assume that the product will always be in the range of integer.Exercise 5-8 Determine which of the following can, and which cannot be added to our set of valid argument forms. (1) p ∨ (q ∨ r) :: r ∨ (q ∨ p) (3) p ⊃ (q ⊃ r) :: r ⊃ (q ⊃ p) (5) p ⊃ q /∴ ∼ (∼ q ⊃ p)