Computer Science MIPS assembly language program using Procedure to find the grade of a student, given the marks of Final (30%), Midterm (20%), quizzes and homework (25%), and projects (25%). Given the marks of above 4 out of 100 points, we have to print the grade of a student based on the following grade slab. 1. Percentage > 90, grade is an A 2. If 80
Q: Using C program Problem: Calculate the tax due or the refund for a family based on the following…
A: The inputs will be the income and number of dependents and the output will be calculated tax
Q: Sequence to SQRT(2) (while loop based on convergence, scalar variables) Consider the sequence…
A: According to the question , we have to write a code in MATLAB to assign the value of the last term…
Q: The factorial of a number n can be estimated using the following formula: n!= /2xT xn x Where…
A: The below points are followed to write the program with the given description: Include following…
Q: Write the flowchart and alogorithm relate to below C++ code // C++ program to illustrate Saddle…
A: C++ is a procedural as well as object-oriented programming language consisting of class objects and…
Q: Alexa has n candies and m number of students in her class. Write a C++ program to input the number…
A: Write a C++ program to input the number of candies and the number of students from Alexa and print…
Q: Q4, a mechanical pump whose rated speed is (Sm=15 cfm) is connected by a pipe and valve to a vacuum…
A: Please refer to the following steps for the complete solution to the problem above.
Q: C++ program help Write a program to transform n mixed numbers into improper fractions. A mixed…
A: #include<iostream>using namespace std;int main(){ int n; cin>>n; for(int…
Q: write program that multiplying any square matrix of size over than 3*3 by (-10) if the sum of its…
A: consider a 3 *3 square matrix insert all the elements to the matrix compute the diagonal sum of…
Q: The programming language is C++, write a program for each items base on the given statement. 1.…
A: Code: #include <iostream>using namespace std; int main() { int grade, newGrade; cout <<…
Q: The square root of 1.5 is obtained by finding the positive root of the quadratic equation 10)-1²-15…
A: First we need to create a function to find the sign of an integer. After create a bisection root…
Q: Simple IF functions The teacher promised the class a pizza party if their final grade averages were…
A: // Note: Please mention the programming language, while posting a question. For now, I am doing this…
Q: C++ program to print Sorting(Decessending)and print before sorting index For example (Before…
A: C++ program to sort in descending order
Q: Write a function print_shampoo_instructions() with parameter num_cycles. If num_cycles is less than…
A: Algorithm: if num_cycle is less than 1 print too few if num_cycle is greater than 1 print too many…
Q: We can assign a value to each character in a word, based on their position in the alphabet (a = 1, b…
A: Answer: Algorithms: Step1: we have create balance function to takes arguments as string Step2: we…
Q: 7. A prime number is an integer greater than one that is only divisible by one and itself. Write a…
A: import numpy as np#function to check given number is prime or not#returns True, if prime#otherwise…
Q: using C language Define a function called hypotenuse that calculates the length of the hypotenuse…
A: #include <stdio.h> #include<math.h> //creating function double hypotenuse (double a,…
Q: Make a C programming of: 1. Grass sod costs 35.00 per square meter and fencing costs 100.00 a…
A: Include the required headers in the program. Declare the main function. Prompt to enter the length…
Q: 39. Write a program for the following problem. An instructor needs a program that accepts a student…
A: Given : semester average grade 90 -100 A 80-89 B 70-79…
Q: MACHINE PROBLEM 2 WRITE A COMPUTER PROGRAM USING ANY LANGUAGE OF YOUR CHOICE THAT WILL IMPLEMENT…
A: The code and the output for the above given question is below:
Q: programing language Find the error in each ofthe following code segments and explain how to…
A: a) x = 1;while ( x <= 10 );x++;} b) for ( y = .1; y != 1.0; y += .1 )printf( "%f\n", y );
Q: HW7_2 This problem uses an interpolating polynomial to estimate the area under a curve. Fit the…
A: Actually, program is an executable software that runs on a computer.
Q: Final Exam triangle looks like the following: 1 1 1 1 1 1 0 0 0 1 1 1 0 0 1 1 1 Write a C++ function…
A: Program Approach:- Ask to enter a number of rows and columns. Define the loop for row-column and…
Q: We can assign a value to each character in a word, based on their position in the alphabet (a = 1, b…
A: Since the programming language is not mentioned, I have done the code using JavaScript.
Q: Use C++: Develop a Tic Tac Toe game that will match a player against the computer. Do’s: Use a…
A: As per question we use only Program must use: functions loops branching string functions
Q: c++ program
A: #include <iostream>#include <bits/stdc++.h>using namespace std; //Array of first 1230…
Q: Write a C# program using Switch Case loop that accept a student biodata; names, age, sex and…
A: I have provided code in step2
Q: BMI is a measure of body condition and it is related to a person's weight and height. In the metric…
A: This code is used to know the condition of person whether he’s healthy or obese. If the BMI is less…
Q: Admission requirements BSIT Track STEM, TECHVOC SHSAve at least 85 BSP…
A: Solution of Question A: Programming language used: C++ Program code: (Note: all necessary comments…
Q: Example 6-16 shows how to write a program to factor a polynomial of the form x² + bx + c, where b…
A: Note: Since no langauge is mentioned, therefore answering the given language in python. # Function…
Q: Use C++ Rolling a single six-sided die produces a random number between 1 and 6 with a uniform…
A: Actually, c++ is a powerful general purpose language.
Q: The factorial of a number n can be estimated using the following formula: n!= V2x 7xn x Where…
A: Programming instructions: Include necessary header files. Declare function. Create a global…
Q: section grouping is a string containing just characters "(" and ")". A standard section succession…
A: Here have to determine about the section grouping programming problem statement.
Q: ite a program named FullName3.sce that includes the following lines X = linspace (0, 1, N); y sin…
A: MATLAB CODE- lose allclearclc f = @(x) sin((pi/2)*x);N = findN(f) function N = findN(f)N = 2;while…
Q: Objective: A program should be developed to read the value of x. It computes the value of f(x)…
A: Read a float type value x from the user. Using if/else statement checks whether the given input…
Q: u will show the only Survivor step off Genetic Algorithm -The selected survivors (solutions) will…
A: Write a simple python code where you will show the only Survivor step off Genetic Algorithm -The…
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: To write a code to computes the tuition in ten years and the total cost of 4 years’ worth of tuition…
Q: i₁(x) == fv₁ (x) dx Write a C program that calculates the area under a curve for the function: v₁(x)…
A: // Used for input & output functions #include <stdio.h> // Used for math functions…
Q: Qn1: You are asked to write a simple C program that will accept an integer value in the range of…
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining…
Q: Solve It In C Language By Using Array 6. The electric company charges according to the following…
A: #include<stdio.h>//header filevoid total_charges(int arr[])//total_charges function{ int…
Q: Develop a Tic Tac Toe game that will match a player against the computer.
A: #include <iostream>#include <string>#include <time.h>#include <random>using…
Q: Write C++ program that evaluate the sum of the following series Sum= 1+ X^1 / 1! + X^2/2! + X^3/3! +…
A: C++ code: #include <iostream>#include <cmath>using namespace std; /*function to find…
Q: QI/ Write C++ program to read a score of student and print the estimation to refer it. е.g: 100 - 90…
A: #include<iostream>using namespace std;int main(){ int x; cout<<"Enter your score:…
Q: The SRC of AIT is trying to find out the eligibility of voters in the school for an upcoming…
A: INTRODUCTION: A flowchart depicts the individual phases of a process in a logical sequence. It is a…
Q: Write a program that will: • Select a random number between 1 and 100. • Test if the number is prime…
A: Written code in Python since no programming language was mentioned - from random import *…
Q: (c) Figure I shows an example how to calculate CGPA for first semester. Write a program to ask…
A: Write a program to ask student to enter grade points for five subjects where each of subject is…
Q: Write a function that, given a DataFrame, computes each entry's deviation from the mean of its…
A: Python function that finds the standard deviation from the mean of it's column is: # column standard…
Q: Using Stucture in C programming language create a program with a user-defined function that asks for…
A: Here, first, we created a Structure Person with name and age fields. After that, we have to take…
Q: Define a function that converts C to F degree. Then compute the Fahrenheit degrees for the following…
A: Code :
Q: Create a c++ program that asks the user to enter all of his 3 quizzes during the preliminary…
A: The cin and cout statements are used to read and print stream input. They use the stream extraction…
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images
- Programming Language : R programming (R Studio) A twin prime is a prime that has a prime gap of two. Sometimes the term twin prime isused for a pair of twin primes. For example, the five twin prime pairs are (3, 5), (5, 7),(11, 13), (17, 19) and (29, 31). Write a function that returns the number of all twin primepairs between 1 and a given number n.Using, HTML,CSS , and javascript Write a program that takes as input the speed of a car e.g 80. If the speed is less than 70, it should print “Ok”. Otherwise, for every 5 km/s above the speed limit (70), it should give the driver one demerit point and print the total number of demerit points. For example, if the speed is 80, it should print: “Points: 2”. If the driver gets more than 12 points, the function should print: “License suspended”.Correct answer will be upvoted else downvoted. Computer science. section grouping is a string containing just characters "(" and ")". A standard section succession is a section grouping that can be changed into a right number juggling articulation by embedding characters "1" and "+" between the first characters of the arrangement. For instance, section successions "()()" and "(())" are normal (the subsequent articulations are: "(1)+(1)" and "((1+1)+1)"), and ")(", "(" and ")" are not. You need to find a string b that comprises of n characters to such an extent that: b is a standard section grouping; in the event that for some I and j (1≤i,j≤n) ai=aj, bi=bj. As such, you need to supplant all events of 'A' with a similar kind of section, then, at that point, all events of 'B' with a similar sort of section and all events of 'C' with a similar sort of section. Your undertaking is to decide whether such a string b exists. Input The primary line contains a solitary…
- A.1 Discussion Array (C++ Language) Store the 12 numbers in an arrayNum by using input. Then output the 12 numbers on array. Example: 4 – 6 – 7 – 8 – 9 – 5 – 3 - 1- 22 – 2 – 33 - 8 upload your screenshot of the codes and output. A.2 FUNCTION C++ PROGRAM Write a global and local variable program that would require the user to input a value of the Radius of a circle and then show the output in the diameter, circumference of the circle and area of the circle. Write your answer.The programming language is C++, write a program for each items base on the given statement. 1. Due to poor result of an examination, your professor decided toincrease each student by 1 point. Input the grade and print the newgrade. If the original grade exceeds 100, then it remains as such. 4. A college student who is registered for 21 units or more is consideredas full time student. The tuition fee for full time is 7000. A part timestudent is charged 300 per unit for tuition. Given the number of unitsa student is registering, calculate and print his tuition fee on the basisof the given criteria.C++ programming Four experiments are performed, and each experiment has six test results. The results for each experiment are given in the following list. Write a program using function(s) to compute and display the average of the test results for each experiment. 1st experiment results: 23.2 31 16.9 27 25.4 28.6 2nd experiment results: 34.8 45.2 27.9 36.8 33.4 39.4 3rd experiment results: 19.4 16.8 10.2 20.8 18.9 13.4 4th experiment results: 36.9 39 49.2 45.1 42.7 50.6
- C++ program help Write a program to transform n mixed numbers into improper fractions. A mixed number is a number consisting of a whole number and a proper fraction. Given the mixed number: 3 3/5 The improper fraction representing this mixed number is: 18/5 Convert 3 3/5 into an improper fraction, we: Multiply the whole number with the denominator of the proper fraction. Add the numerator of the proper fraction to the product from step 1 to obtain the numerator of the improper fraction. The denominator of the improper fraction will be the same as the denominator of the proper fraction. The input for your program will be: An integer value that represents the number mixed numbers to transform. Three integer values per mixed number representing the whole number, the numerator, and the denominator of the mixed number. Given the following input: 33 3 54 1 23 1 3 The expected output is: 3 3/5 = 18/5 4 1/2 = 9/2 3 1/3 = 10/3An integer is said to be prime if it’s divisible by only 1 and itself. For example, 2, 3,5 and 7 are prime, but 4, 6, 8 and 9 are not.a) Write a function that determines if a number is prime.b) Use this function in a program that determines and prints all the prime numbers between 1and 10,000. c languageSolve the Problem with C++ (Financial application: compare loans with various interest rates)Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8.Sample RunLoan Amount: 10000Number of Years: 5Interest Rate Monthly Payment Total Payment5.000% 188.71 11322.745.125% 189.28 11357.135.250% 189.85 11391.59...7.875% 202.17 12129.978.000% 202.76 12165.83
- In c++ program: Wite a program to print the perimeter of polygons.NB: A polygon is a plane figure that is bounded by a connected finite number of straight-linesegments. Example: Pentagon, Hexagon, etc1. An interactive program to choose the type of polygon, accept the length of the side in millimetres.2. Calculate the perimeter of the chosen polygon3. Display the name of the polygon, the length of the side, and the perimeter of thepolygon.The formula for calculating the perimeter of a Polygon:Perimeter = (number of sides) × (length of one side) The solution for each question should have the following components.i. Algorithmii. Pseudocodeiii. FlowchartThis function should reverse the words in a string. A word can be considered to be any characters, including punctuation, separated by spaces (only spaces, not tabs, \n etc.). So, for example, if s is “The Giants won the Pennant!” the function should change s to “Pennant! the won Giants The” void reverseWords(char *s)PYTHON CODE FOR- Suppose an insurance company is insuring against burglary that happens with probability 0.1. The customer's wealth will be 40,000 if his or her home was broken in, and 50,000 otherwise. The insurance company pays 10,000 if a burglary happens, and 0 otherwise. The insurance policy costs 1,000. Simulate the average payoff to the insurance company if it sells to 100, 1000, or 10000 customers. Plot the histogram on a figure.