Q/ Lab/Write a program to enter the height and width of flat shape, then check whether this shape is square or not.
Q: 10. write a program to enter 10 numbers ,then count how many number are positive,after that find the…
A: As a programming language is not mentioned i attempted this question in c
Q: Q4. Write a program to read a number and calculate if it is prime or not?
A: #include <iostream>using namespace std; int main() { int i, n; bool isPrime = true;…
Q: Q1/ Write a Program to compute the area of triangle with design.
A: Since programming language is not mentioned I have used the C++ programming language. Requirement:…
Q: Q5:- Write program to calculate the equation sin(x) y(x) = x* where x = 0. 1,0. 2,0. 3,0. 4
A: #include <iostream>#include<cmath>using namespace std;int main(){ float x,y;…
Q: 5. Write a program to display the result, as int and float, half, the sum of 10.5 and 21
A: float half sum is directly calculated. int half sum is not directly calculated use the type…
Q: After following statements have executed, find the value of the variable a. int a=0; while (a<12)…
A: Here we have a variable with an initial value of 0. Now we have a while loop which is true till the…
Q: Q3: Write a program to find the area and volume of the cube. And draw the flow chart for this…
A: Note: Answering in python as no language is specified. Input : Read the length of the side of the…
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: 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: 2. To get input a number and display the number of digits.
A: 2. number = int(input("Enter a number: ")) # taking the number fromn user #…
Q: B- Write a program to enter the name of a student and two marks of any using input box then computes…
A: The Answer is in given below steps
Q: The area of a rectangle is the rectangle’s length times its width. Write a program that asks for the…
A: Note - Since you have not provided the language to write the code so I am using java language to…
Q: 5. Write a program in which the user enters the three angles of a quadrilateral and the program…
A: Write a program in the JAVA language in which the user enters the three angles of a quadrilateral…
Q: Q.2/ Write a program to enter a value of x and compute the value of y x if x20 |-x if x<0 where y =
A: Task :- Write a program according to the given function.As programming language is not specified,…
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: 1- Write a program to enter average and find the grade rating() (Excellence, Very good, Good,…
A: NOTE NO PROGRAMMING LANUAGE IS MENTIONED SO I WAS USED C++ LANGUAGE 1) #include…
Q: Q3/ Write a program to enter a real number then find its square after putting suitable design.
A: :: Solution :: Problem Analysis : Note: As no programming language, therefore answering in the…
Q: Qi/ Lab/Write a program to enter the height and width of flat shape, then check whether this shape…
A: #include<iostream> using namespace std; int main(){ int height, width; cout<<"Enter the…
Q: Q5: - Write program to calculate the equation sin(x) y(x) = x* where x 0.1, 0.2,0.3,0.4 Use a combo…
A: Problem Analysis : Note: Since programming language is not mentioned therefore answering the…
Q: Compute the volume of a cylinder) Write a program that reads in the radius and length of a cylinder…
A:
Q: (Compute the volume of a cylinder) Write a program that reads in the radius and length of a cylinder…
A: Lets see the solution.
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: Marks) Write a program to enter three scores and calculate the average for them, then display the…
A: As no programming language is mentioned, solving this in c++. #include <iostream> using…
Q: Q1: write a program to enter any text and compute its length
A: //note no programming language is mentioned so i was used c++ programming language…
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: (i) Complete the program labeled with (1) to (5).
A: double &speed[0] count<5 count++ *(speedPtr+count)
Q: 1- Write a v.b program that check any input number through a text box if the number is odd then…
A: Form 1: <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _Partial Class…
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: 9. Write a program which asks the user for their score on the exam. Display their letter grade based…
A: Ans: Code: grad = input('Grad> ') if grad >= 90 fprintf('A'); elseif grad >= 80…
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: What does the following program print? void main() int x,y=1,tot=0; for(x=1;x<5;x+=4) if(x==4)…
A: Logic:- in expres
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: Q4: Write a VB program to find the roots of the Quadratic equation? Note: use Textbox to enter…
A: The coefficient are a, b and c. Thus, the equation is: ax2+bx+c=0 The objective is to write a…
Q: B) write program in Visual Basic to solve the equation. Z (X+Y) According to the Following required.…
A: B) write program in Visual Basic to solve the equation. Z= (X+Y) According to the Following…
Q: Ex: Write a program to evaluate the area and circumference of a circle.
A: Since no programming language is being in the program so writing in C language. Problem Statement:…
Q: Every complete statement ends with a __________.
A: Given:- Every complete statement ends with a __________.
Q: Q2: Write a program to display the time and the date, put a suitable design. (20 marks)
A: Introduction:*Your not mentioned to write a particular programming language so we provide python…
Q: 2.16 LAB: Convert to seconds Write a program that reads in hours, minutes and seconds as input, and…
A: For completing this program, we will follow the subsequent steps: Initializing the Scanner class…
Q: QUESTION 2 Write a program that prints out the following pattern **** **** **** ****
A: Required: C++
Q: Question1: write a program to print out the following figu by QBasic * * * * * *
A: Required:
Q: Complete a program for counting digits and displaying their total count at the end of the program }
A: Complete code: #include <iostream>using namespace std;int main(){int n;int digits = 0;cin…
Q: Q4) Write a program to enter a number from the keyboard, then check: -if the number is bigger than…
A: In this code, the number is entered by the user and correspondingly the number is checked according…
Q: Q1) Write a program to enter a number from the keyboard then print "YES" if the number is divisible…
A: Answer : #include <iostream> using namespace std;
Q: Indicate if the following expression is True or False Assume the variables int a=3, b=4, c=6;…
A: a=3 b=4 c=6 !((a + b -c) > 3)
Q: Q3- Write a program to find the circumference and the area of square its side x
A: Step 1: Prompt and accept the side of the square. Step 2: Find the circumference of the square by…
Q: Q2: Write the code so that you can take input on the console and display each word in the next line.…
A: As no programming language is mentioned it is solved using basic python
Q: 1- Write a program to compute the value of y: 25 + 49 3 y = 1+++ Where 5
A: Since the language is not mentioned, I have done the first question using Python 3.
Q: 2- Write a program to enter(15) numbers by using inputbox function and then find the average of…
A: 1. declare two functions textbox and input box.2. in inputbox function take the 15 numbers from…
Q: 5- Write a program that asks the user to enter an angle in degrees and prints out the sine of that…
A: Coded using C++.
Step by step
Solved in 4 steps with 4 images
- Code (C++) that will print the message17.1 LAB: Convert to seconds Write a program that reads in hours, minutes, and seconds as input, and outputs the time in seconds only. Ex: If the input is: 1 6 40 where 1 is the number of hours, 6 is the number of minutes, and 40 is the number of seconds, the output is: Seconds: 4000 344614.2153518.qx3zqy7Q3: Write a program in which user is asked to enter two integers (divisor and dividend) and computes the quotient and remainder. To compute quotient and remainder, both divisor and dividend should be integers.
- Q1. Write a program that takes your full name as input and displays the abbreviations of the firstand middle names except the last name which is displayed as it is. For example, if your name isRobert Brett Roser, then the output should be R.B.Roser.switch statement C++ that will loop the caseFind the error. Write the correct statement
- C Program In order to discourage excess electric consumption, an electrical company charges its customers a lower rate of P75 for the first 250 kilowatt-hours and a higher rate of P8.5 for each additional kilowatt-hour. In addition, a 10% surtax is added to the final bill. Write a program that calculates the electrical bill given the number of kilowatt-hours consumed as input. At the end, print the number of kilowatt-hours consumed and the computed bill.01. Q. A Program to check if strings are rotations of each other or not?.C++ Write a program that prompts the user to enter the number of students and each student's name and score. and finally displays the name and score of the student with the highest score and the average score.
- 7) Write a program that reads an integer and uses a single variable to add 5 to the integer, multiply by 6, and divide by 2. The program displays the remainder. * Test your program using the integer 8. * C++d. Given that an int variable s has been initialized, write a statement(s) that declares a new variable andassign it the remainder of 9 times 8 less than s divided by 4. e. Write a statement(s) that initializes the variables named a, b, c and d to false, ''one'', 'y' and 87.9respectively(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.