1- Write a program to compute the value of y: y = 1+++ 3 25 .+ Where 3 49
Q: Q3 (A) write a program to find the Y value when: 2 - 10 <x< 0 Y = x = 0 x² + 4 0 <x<7 2.
A: Note: As there is no Programming Language is mentioned So I will solve this problem using Java.…
Q: Output Formatting with Numbers and Columns and Loops Write a program that converts the temperatures…
A: Program plan: Declare the celsius value as 1 Define a for loop that iterates from 1 to 20 to…
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: (Find the number of years) Write a program that prompts the user to enter the minutes (e.g., 1…
A: start input minutes calculate number of years and days print it stop
Q: Swapping to numbers. We have to write a program to swap two numbers using +, - operator only and…
A: program to swap two numbers using +, - operator only and print the results both conditions:
Q: 1. Given two numbers X and Y. Write a program to determine the difference between X and Y. If X - Y…
A: “Since you have asked multiple questions, we will solve the first question for you. If you want any…
Q: Write a program that prints the next 20 leap years.
A: A year is leap year if it is divisible by 4 and not divisible by 100, or it is divisible by 400. To…
Q: (Compute expressions) Write a program that displays the result of 7.5 x 6.5 - 4.5 x 3…
A: Since the Programming language is not mentioned in the question, we will answer this question in…
Q: 1.Write a program to compute F(x, y) where F(x, y) = F (x-y, y) + 1 if y <= x and F(x, y) = 0 if x…
A: here in the question ask for program in c.
Q: 9- Write program to read 5 numbers and print all +ve numbers & print 0 if-ve numbers Ex: 95-42-2…
A: // As per our guidelines we are supposed to answer only one question. Kindly repost other questions…
Q: Find the number of years and days) Write a program that prompts the user to enter the minutes…
A: Lets see the solution in the next steps
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: Compute the volume of a cylinder) Write a program that reads in the radius and length of a cylinder…
A:
Q: 1- Draw a flowchart 2- Write a program to find the value of H for the following series H =…
A: You have not provided the programming language so, I have given a C++ program for the given…
Q: Q5:- Write program to calculate the equation sin(x) y(x) = x * where x = 0. 1,0. 2,0. 3, 0. 4
A: You have not specified any programming language so, I have used C++ language to write the program.
Q: 3- Write and Design a program to solve the following equation 2X2 + 5X + 3 = 0
A: Please note that we are only allowed to solve one question in one post. I am solving the first one…
Q: 10: numberWords.cpp) Write a program that reads a hole number of up to nine digits and prints it in…
A: The program reads the value from the user and stores into a variable. Program has two methods…
Q: Find the errors in the program and rewrite the correct statements P=int(input("Enter the P Value")…
A: Corrected Error:
Q: 8- Write a program to calculate y from the equat ((3х — 7)}f (х %3D—5) y={(5x² )if (x= 2)or(x=5) |(x…
A: Define header file <iostream> for io operations. Define main function. Define int variable x.…
Q: 1. Create a program that can accept a number and display that number as many times as the inputted…
A: Coded using Java.
Q: Instructions Write a program that calculates and prints the number of minutes in a year. Assume the…
A: Given: Write a program that calculates and prints the number of minutes in a year. The program is…
Q: (Count positive and negative numbers and compute the average of numbers) Write a program that reads…
A: The C++ program is written where it takes the input from the user and counts the positive and…
Q: 6. Odd to n by Jemar Jude Maranga Write a program that will take as input an integer n and will…
A: C++ program to find the odd number between 1 and input integer n
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: Q1: Draw the flow chart of a program that returns the sum of the even numbers between 5 and 75.
A: 1) Create a variable sum= 0 ,I=5 2) Run the loop from I=5 to I=75 Check if I is even…
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: (Summation of a series) Write a program that displays the result of1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9…
A: Since you haven't mentioned the programming language, we are answering this in java. Thank you.…
Q: Trace the following program, correcting its errors and explaining its results: read,*x 4 y=x+5…
A: Given program contains variables x and y and assume that the initial value of x is 4. First line…
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: Write a program that prompts the user to input three numbers. The program should then output the…
A: Java program to display the three number in ascending order. Create the object of the Scanner class…
Q: Find the errors in the program and rewrite the correct statements r=int (input ("Enter r value="))…
A: In the second line, instead of giving =, in the code == is provided, therefore there will be error…
Q: Find the errors in the program and rewrite the correct statements r=int (input ("Enter r value="))…
A: find the errors in the program and rewrite the correct statements r=int(input("Enter r…
Q: Write a program to calculate the value of the sum odd numbers between 35 -75, use Do- while…
A: According to the Question below the Solution: Programming language is not mention so i am using…
Q: (PYTHON) By using the ‘while’ statement, write a program that counts up to 30 and prints the…
A: Answer Python program by using while loop that counts up to 30 and prints the numbers that can be…
Q: Count positive and negative numbers and compute the average of numbers) Write a program that reads…
A: Code import java.util.Scanner; public class NumbersStats { public static void main(String[]…
Q: Write a Little Computer Man program that determines if the number entered by a user is an odd or…
A: Process: A number is even if it is perfectly divisible by 2. When the number is divided by 2, we use…
Q: A five-digit number is entered through the keyboard. Write a program to obtain the reversed number…
A: Since no programming language is mentioned, I am using c++. Code: #include <iostream> using…
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: 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: To convert specific days into years, week, days write a program .
A: NOTE: As the programming language is not mentioned in the question. So, we have solved this question…
Q: a=5 b=10 b=a+5 while a==b and b<=a: print("NCT") print(a) The output of the above program will be
A: the output of the following code will be: 5
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: 1- Draw a flowchart for a program that reads N numbers from the user and prints out their odd…
A: flowchart is :-
Q: 1- Write a program to compute the value of y: y =+ 3 n Where %3D ... x2 x3
A: #include<iostream> #include<math.h> using namespace std; int main(){ int x,n;…
Q: Find the errors in the program and rewrite the correct statements r=int (input ("Enter r value="))…
A: Line 2 - Use assignment operator (=) Line 3 - use small r Line 4 - Use "print" instead of "Print"…
Q: (Find the number of years) Write a program that prompts the user to enter the min- utes (e.g., 1…
A: Code: (Find the number of years) Write a program that prompts the user to enter the min- utes (e.g.,…
Q: Write a Python program that asks the number between 1 and 10. If the number is out of range the…
A: This is a Python Programming Based Question.
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: 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.
Step by step
Solved in 4 steps with 2 images
- (Biology) The number of bacteria, B, in a culture that’s subject to refrigeration can be approximated by this formula: B=300000e0.032t e is Euler’s number 2.71828 (rounded to five decimal places). t is the time in hours the culture has been refrigerated. Using this formula, write, compile, and run a C++ program that prompts the user for a value of time, calculates the number of bacteria in the culture, and displays the result. For testing purposes, check your program by using a test input of 10 hours. After verifying your program, use it to determine the number of bacteria in the culture after 12, 18, 24, 36, 48, and 72 hours.(Electrical eng.) a. The voltage gain of an amplifier is given by this formula: voltagegain=[275 23 2 +0.5 f 2 ]n f is the frequency in Hz. n is the number of stages in the amplifier. Using this formula, write, compile, and run a C++ program to determine the value of the voltage gain for a four-stage amplifier operating at a frequency of 120 Hz. Your program should produce the following display: At a frequency of xxxxx hertz, the voltage gain is yyyyy Your program should replace xxxxx with the frequency and yyyyy with the voltage gain. b. Manually check the value your program produces. After verifying that your program is working correctly, modify it to determine the voltage gain of a 12-stage amplifier operating at a frequency of 9500 Hz.Numerical analysis) Given a number, n, and an approximation for its square root, a closer approximation of the actual square root can be found by using this formula: newapproximation=(n/previousapproximation)+previousapproximation2 Using this information, write a C++ program that prompts the user for a number and an initial guess at its square root. Using this input data, your program should calculate an approximation of the square root that’s accurate to 0.00001. (Hint: Stop the loop when the difference between the two approximations is less than 0.00001.)
- 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;Create a C function that will input 10 numbers and will perform the following 1. Display all even numbers 2. Display all the numbers 3. Display all odd numbers 4. ExitQ1: Write a C++ program to read any integer number and determine if the number is not prime using function int prime(), the answer will be printed from the main function.
- PLEASE SOLVE THIS IN C++ CODE ONLY! PLEASE READ AND DO THE PROGRAM WITH ACCORDING TO THE CONDITIONS GIVEN. PLEASE ALSO WRITE THE USE OR FUNCTIONS OF EACH CODE USED BY INSERTING ITS USE EVERY LINE USING "//" A palindrome is a string that reads the same from front to back as it does from back to front, e.g., "racecar", "radar", "21012". Write a program that will identify whether a given line of input is a palindrome or not. Your program must also be able to determine the following sample inputs as palindromes, aside from identifying one-word inputs: Able was I 'ere I saw Elba. Madam, I'm Adam. A man, a plan, a canal, Panama. These samples require that your program must ignore spaces and punctuations, and consider uppercase and lowercase letters to be the same. Include necessary functions in your program to process the input. You can also use existing functions from the string library.-Program C 2. Not my Favorites by CodeChum Admin We've already done looping through a series of numbers and printing out its squares, so how about we level it up and go with cubes this time? I have a condition though; I don't want to be associated with numbers that are divisible by 3 or 5 so if an integer is divisible by either of the two, don't make their cube values appear on the screen, please. Care to fulfill my request? Instructions: Print out the cube values of the numbers ranging from 1 to 1000 (inclusive). However, if the number is divisible by either 3 or 5, do not include them in printing and proceed with the next numbers. Tip: When skipping through special values, make use of the keyword continue and put them inside a conditional statement. Output Multiple lines containing an integer. 1 8 64 343 512 . . .The Philippine Stock Exchange (PSE) is the national stock market of the Philippines. It is an organized market for purchasing and selling of securities such as shares, stocks, bonds, and other similar financial instruments of various listed companies in different industries. As of 1 January 2022, there are 278 listed companies in PSE. Write a C++ program that asks user input stock symbol, checks whether the input symbol is included in the listed companies in the Philippine Stock Exchange market, and outputs the position of the listed company in the array. Use linear search algorithm. Note: Use this list of stock symbols attached in the table. S.No. Company Name Symbol Sector Sub-Sector Listing Date 1 2GO Group, Inc. 2GO Services Transportation Services 15-May-95 2 8990 Holdings, Inc. HOUSE Property Property 9-Dec-10 3 A Brown Company, Inc. BRN Property Property 8-Feb-94 4 A. Soriano Corporation ANS Holding Firms Holding Firms 25-Oct-73 5 AbaCore Capital Holdings, Inc.…
- Write a C99 function that includes the following sequence of statements: x = 21; int x;x = 42;C++,thanks! 2.Write a function to count how many numbers in one string..1- Write a function in C programming to find prime numbers usingfunction. How to find all prime numbers between two intervals usingfunctions. Display all prime numbers between a given range usingfunction in C programming.ExampleInputInput lower limit: 10Input upper limit: 50OutputPrime numbers between 10-50 are: 11, 13, 17, 19, 23,29, 31, 37, 41, 43, 47