Program that prompts the user to enter grades in a loop

Assignment Help MATLAB Programming
Reference no: EM13167819

Define a function that takes two input parameters, a vector of test scores and a scalar passing grade. The function returns the fraction of passing grades as a number in the range [0 1] (so 0.3 means 30% of the grades were passing. Define the function without using any MATLAB library functions.

Write a main program that prompts the user to enter grades in a loop, ending on a negative number, stores the grades in a vector, and asks the user for a passing grade. Ten pass the grade vector and passing cutoff to the function and print the percent of passing grades.

Reference no: EM13167819

Questions Cloud

Find the mean - median and standard deviation : Find the mean, median, standard deviation, variance and range.(Use correct notation, you don't have to show work)
How many carbons does the sample contain : how many carbons does the sample contain
State eye of a hurricane is less than atmospheric pressure : The pressure in the eye of a hurricane is less than atmospheric pressure. Which one of the following pressure readings could not have been taken
How much chocolate would you have to consume : A 1.0 ounce piece of chocolate contains 15 of caffeine, and a 6.0 ounce cup of regular coffee contains 105 of caffeine.How much chocolate would you have to consume to get as much caffeine as you would from 5.0 cups of coffee?
Program that prompts the user to enter grades in a loop : Write a main program that prompts the user to enter grades in a loop, ending on a negative number, stores the grades in a vector, and asks the user for a passing grade. Ten pass the grade vector and passing cutoff to the function and print the per..
Compute the expectations of x and y : One of the 4 bus drivers is also randomly selected. Let Y denote the number of students on his bus. Compute the expectations of X and Y:
Create a database for managing our business : Evaluate the given statement and discuss some approaches to address the issue: "We spent several million dollars a few years ago to create a database for managing our business. In the past several months, we acquired a new business but its data does ..
Compute the required quantity of each reagent : Describe the preparation of 12 mL of a 0.050 M solution of each of the halogens, using the reactions in the preceding question. Available to you are solid Ca(OCl)2
What are venn diagrams : Imagine you are talking about your college math class over the family dinner table with your father, and he asks, "What are Venn diagrams?" Describe how you would explain them to him.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Write a matlab function newtonraphson

Write a MATLAB function newtonRaphson(fx, x0, sigfig, maxIT) that will return a root of the function f(x) near x=x0 using the Newton-Raphson method, where sigfig is the accuracy of the solution in terms of significant figures

  Generate a sphere of diameter 3. create 3 vectors

Generate a sphere of diameter 3. Create 3 vectors representing the translation of this sphere along the x, y, and z axes. Generate the correct vectors given the description below: The sphere should be translated to (-10, -10, -10).

  Make a program that will graph the parabolas

Make a program that will graph the parabolas each parabola a different color and put all the parabolas in the same figure or graph

  Characterizing population of about countries

Select 10 features characterizing the population of about 100 countries. load it into Matlab. Normalize the data between 0 and 1. (min, max and minmax are some useful Matlab commands)

  Plot the lines using the inputted vector of x values and x

Write a function named solveSystem that has three inputs: two vectors consisting of coefficients [a b c] of two line equations of the form ax + by = c and a vector of x values.

  Parking in garage using matlab

In matlab: parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour.

  The function take optional arguments, theta, alpha, beta

the function tverskySim (found in problem4/tverskySim.m) takes optional arguments, theta, alpha, beta where theta is the weight assigned to the common features between a and b, alpha is the weight for the distinctive features of a, and beta is the we..

  Calculate the geometric mean of numbers

Write a program to calculate the geometric mean of numbers entered by a user. The program should prompt the user to enter numbers and continue to accept the numbers until the user enters 999.

  Kerfuffleboard is a game very much like shuffleboard

Kerfuffleboard is a game very much like Shuffleboard. Players take turns shooting disks at a trianglular scoring area. While the scoring areas are the same in shuffleboard and kerfuffleboard, a disk's contribution to a player's score will be calcu..

  It turns out that since you''ve become experts

It turns out that since you've become experts on rating clothing, Acme Clothing Company has hired you to rate their clothes. Clothes are now represented as structures instead of vectors with the fields (all of which are numbers between 0 and 5): C..

  Write a function that takes a list of integers

Using ML write a function that takes a list of integers as argument and returns a pair consisting of the sum of the even position and the sum of the odd positions of the list.

  Filtering – biomedical application

Prepare a filter that removes noise produced by electronic medical equipment.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd