(B)The following is a list of 20 exam scores. Write a computer program to calculates the average scores Exam scores: 73, 91, 37, 81, 63, 66, 50, 90, 75, 43, 88, 80, 79, 69, 26, 82, 89, 99, 71, 59
Q: Consider a value as a=5 and b value as b=5 Write the output of below given program
A: #initialize a and ba=5;b=5; a=a+5; #add 5 to aa+=5; #add 5 to a b*=(a+b); #multiply b…
Q: 1. Prepare a program that converts hours to minutes only. Example: 3 hours are equal to 180 minutes.
A: Ans: Code: #include <iostream> using namespace std; int main(){ int hours;…
Q: 2. Draw a flow chart that displays the squares of all the positive integers up (and including) 100…
A:
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: Q2: b- write a program using a function to calculate and return the volume and surface area of a…
A: In C++ language the question is solved given below: we provide a source code, code screenshot, and…
Q: 1 #what is the output when the following is executed? 2 E for x in range (1, 6): for y in range (x):…
A:
Q: Find the Error(s) in the following program and state how to fix those error(s).
A: As per the policy and guidelines of Bartleby we are supposed to answer only first question or the…
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: Q1\write an oop program to multiplying three integer numbers ?
A: Step-1: Start Step-2: Declare variable a, b, c and multi Step-3: Take input three numbers for a, b…
Q: 4. Write a program to find the largest number of a series of numbers entered (use these numbers as…
A: [As programming language is not mentioned, doing in python] #Displaying the message "Program to…
Q: Q1\write an oop program to multiplying * three integer numbers ?
A: Step-1: Start Step-2: Create a class Multiply Step-2.1: Declare three variable a, b and c Step-2.2:…
Q: iv) Write a Python program to input two integers t1, t2 from the user and then find the value of the…
A: Code : Output :
Q: ld you please explain the following program with detai
A: include<stdio.h> standard input-output library. struct is the keyword and clientData is the…
Q: Q4: write a program to find the final summation of a given number of terms from following series:…
A: Q4: write a program to find the final summation of a given number of terms from following series: 0,…
Q: Question #1 ::: Write a cpp program to add two even numbers. If their addition is greater than 10,…
A: Task :- Write a cpp program to add two even number and display suitable message. C++ program :-…
Q: What will be the output of the below program:
A: Output of the above code is in step2.
Q: Exercise #2: Write the following equations in a computer form ztyz-3 3z-143z+1-y
A: z + yz - 3 The Computer form of this equation would be that in the computer all the equations are…
Q: 3. Make a program to accept a reading in richter scale of an earthquake and display the extent of…
A: Given :
Q: 3. Write a program that calculates the root mean square value (rms) of the real numbers those will…
A: code : - #include <iostream>#include <bits/stdc++.h>using namespace std; int main(){…
Q: Question 14 Assuming the code x = (y++) / (--y) * (++y) + (y--); has been executed correctly that…
A: Pre-Increment Operator(++a): First increase the value of variable by 1 then use it. Post-Increment…
Q: Q2/A- Write a program to compute the volume (V) and surface area (Ag) of a cylindrical shape system…
A: Here our first task is to write a qbasic program to find the volume and area of cylinder. Algorithm…
Q: 3. Question 1 Write a program which takes two float number from the user and check, if first number…
A: Since you are not specify any language for implementation, I choose C language. Program #include…
Q: Discuss in your own word the function and output of the two programs.
A: The question is on discussing in your own word the function and output of the two programs.
Q: 2. Write a program to print the summation of integer numbers that are greater than 10 and lees than…
A: Algorithm: Include header file and namespace std Create a main function Initialize the variable…
Q: Q1/an A-Write a program to compute the drag force F, (in Newton) When a body swims through fluid,…
A: Hello student Greetings Hope you are doing great Thank You!!!
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: 1. Given the initial statements s1 = [2,1,4,3] s2 = ['c','a','b'] show the result of evaluating each…
A: I give the output along with an explanation
Q: 2.17 LAB: Convert from seconds People find it easier to read time in hours, minutes, and seconds…
A: Introduction: In a single hour, there are 3,600 seconds. Divide the total number of seconds by 3,600…
Q: Q4: write a program to find the final summation of a given number of terms from following series:…
A: The Fibonacci series is a series where the next term is the sum of pervious two terms. The first two…
Q: 4. Write a program that computes the following equation: 1 2 y = 1+ - + - ... .2 xn
A: I have answered this question in step 2.
Q: 3. Write a program to add the following numbers and save the result in R20. Ох25, 0х 19, Ох12
A: Given: Write a program to add the following numbers and save the resut in R20. Given numbers:…
Q: Q4: Write Program to calculate and print values of Z, Y, W from the following equations? Z=Ax² +5…
A: Note : Answering the question in python as no programming language is mentioned. Input : Input A…
Q: 1. Select the value for x that is a counter- example to the following statement: For every integer…
A: Answer : The correct options are (a) x = 1/2 and (d) x = 1 Attached the whole explanation for all…
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: 22: Write a Cr+ Program to read (x) and Compute square and čube of X, then sumation of square and…
A: Start Input value of x Calculate sum Calculate cube Display sum, cube, summation Stop
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: 4- Write a Program to calculate the electromagnetic force between two electrons placed (in vacuum)…
A: Given: Charge of an electron q = 1.6*10-19C Distance between the electrons = 2*10-13 m K= 9*109 The…
Q: Rewrite the following program segment using a while loop. for x in [10, 9, 8, 7, 6, 5, 4, 3,…
A: Since the above program has Python syntax, we need to use the following steps to rewrite the above…
Q: What is the output of the following program
A: The output is as follows: 0 1 2 3 1 2 3 4 2 3 4 5 3 4 5 6 4 5 6 7
Q: Describe what the following code is doing (the outcome), by annotating each line of code and giving…
A: The program starts by moving 100 in R0 and 20 in R1 In second line the loop starts: It compares…
Q: What would be the output of the following program
A: Given recursive implementation of hen with 1-9 having base case and more than that will be recursive…
Q: 5: Write a NumPy program to calculate the mean of the number of steps of the first crossing time…
A: To calculate the mean of the numbers first we should add the numbers and divide with the number…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Create the following programs C++.4. Write a Python function that takes a positive integer(n) as an argument and returns the largest power of two greater than or equal to(n).Use Python to write the program and use prompts and variable names. Request the user for values for four variables that store the following items of data. A class name, Test #1 score, Test #2 score, Test #3 score. Compute the average for the three scores and store it in a variable. Use the print function and format functions and your variables, generate the following output, reporting back the input values and the average. The actual values will depend on what is entered as the input. Scores Report For: Introduction to Computer Programming. Test #1: 94, Test #2: 76 and Test #3: 87. Average score: 85.7
- 2 – Python program to prompt the user to enter the grades of 5 subjects (out of 100 points) and calculate the percentage of those grades. Finally, display the corresponding grades with respect to the marks obtained by the following criteria: a - 90 and above – A b – 80 to 89 – B c – 70 – 79 – C d – 60 – 69 – D e – 50 – 59 - E f – below 50 – F11.3.1: Step counter. A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output is the miles walked. If the input is 5345, the output is 2.6725. Your program should define and call a function: Function StepsToMiles(integer userSteps) returns float numMiles Need program written in coral language-Program C 5. Even Out by CodeChum Admin You know, I was lying when I said the last time that numbers associated with 3 are my favorite, because the one I actually like the most in the world are even numbers! But to make things harder for you, you have to pick the even numbers from a range of two given numbers. Ha! Now, let's try this one more time! Instructions: Input two integers in one line, separated by a space. The first integer shall represent the starting point, and the other, the ending point. Print out all even numbers that are within the range of the starting and ending point (inclusive or including the ending point). Input 1. The starting point 2. The ending point Output The first line will contain a message prompt to input the starting point. The second line will contain a message prompt to input the ending point. The last line contains the integers within the range. Enter·the·starting·point:·5 Enter·the·ending·point:·10 6·8·10
- Python : 1. Write a function called square(n) that determines if the square of a given natural n number is equal to the sum of the first n odd numbers. E.g. 6^2 = 1+3+5+7+9+11 Type a test program that enters data from the keyboard, uses the function and displays the result on the screen. 2. Write a sequential function (n) that delivers the n-th term of the next sequence, in which each term, from the third, is obtained by adding the two Previous: 1, 1, 2, 3. 5, 8, 13, 21, .Write a test program that enters a Data from the keyboard use the function and show the result on the screen. 3. Write a symmetric function (x) that receives an integer and determines if it is symmetrical, that is, if the opposite digits around the center are equal. Write a test program that generates random numbers between 1 and 10000 until you get a number that Be symmetrical. 4. Write a final function(s) that delivers as a result the number of times a dice must be thrown until a given number n comes out as a…Help me answer to question 2. thanks 1. Write a program to iteratively compute Fibonacci numbers (named after an Italian mathematician).Some Fibonacci numbers are 1, 1, 2, 3, 5, 8, ... where the next number is found by summing the preceding two numbers. Your program will read in a number, like 7, report the first 7 numbers. in this case1,1,2,3,5,8,13. Your program is not assured of receiving good data, thus if -2 is received as the number of numbers, then an error should be reported. 2. Assume that an input string consists of a string of 32 0’s and 1’s representing a binary number. a) Write a program that will convert this binary integer to its base 10 representation. b) Given a string representation of an integer in base 10 convert this integer to its binary representation. The output should consist of a string of 32 0’s and 1’s representing the binary number. 3. You are working for a software firm that is to develop a word processor. In order to create an efficient spell checker, you…(a) Using the program above, Compute a monthly tax (in Namibian Dollars) payableby an individual earning N$980, 953 per annum, with a tax free monthly allowanceof N$15, 000. NB: Your answer to this question should be presented as a commentat the end of the main code, with all details.
- 5.22 In Python: Write a program whose input is two integers and whose output is the two integers swapped. Ex: If the input is: 3 8 the output is: 8 3 Your program must define and call the following function. swap_values() returns the two values in swapped order.def swap_values(user_val1, user_val2)QUESTION: If the second input is higher than the first input but lower than the third input, what will be the output results? Write on the space provided the input values and the results. A young boy wants to create a program in block of code that will compute for the quadratic equation then print the result. The main function composes of the input variables.The formula is given below: -B ± √ B ^2 – 4AC--------------------------------- 2AIf the user inputs zero (0), the program will display “Invalid Entry” and return to main menu to input another valid numbers.