Decide on the range of the physical variable that you
want to measure. Example:temperature
from -25 to 25 C, or force from 0 to 1KN.
Make a small program, (in C/C++ or Matlab) when the useri nputs the
voltage, the program will tell the user what is the
temperature. If the voltage is outsidethe range, the program should
alert the user thatthe voltage
is outside the possible range.
#include<stdio.h>
void main()
{
int t,v;
printf("Enter The Voltage ");
scanf("%d",&v);
if(v>-250 || v<250)
{
t= v /10; // for 10mV , t= temperature in degree C //
printf("Temperature is ", t);
}
else
{
printf("Voltage is Outside The Possible Range");
}
}
Decide on the range of the physical variable that you want to measure. Example:temperature from -25...
Use functions to complete this C + + program
You want to write a converter program which will let user convert distance and weight from SI to the USCS system and vice versa The formulae are as follows: 1. Distance in miles- distance in kilometers x 1.60 2. Weight in kilograms weight in pounds x 2.20 The program would let user input the number that they want to convert and then choose the units to and from which they want...
For this assignment, you will implement an “automatic reload” algorithm for an EZ Pass account. You may work in pairs for this assignment. However, keep in mind that both students are still responsible for understanding how to code in Matlab. For the scenario, you will start with $35 in your EZ pass account. And when your account balance drops below $10, the code will automatically reload $25 to the account. When your matlab code is run, it should at minimum...
For this program you will build a modular equation evaluator
(you may want to start from your solution to programming assignment
1). Once again, you will write a C program that evaluates the
equations provided below. The program must prompt the user for
inputs for the equations and evaluate them based on the inputs. All
equations should be placed into a single .c file. This means you
should NOT have 7 Visual Studio projects
or 7 .c files. All variables...
Reread the section on error propagation in the lab manual. You want to determine the energy stored in a capacitor for a given voltage. You measure the capacitance C and the applied voltage V and calculate the energy from U = 0.5CV2 Which of the quantities, C or V, should you measure most carefully (with the smallest relative uncertainty) to obtain the most reliable value (smallest relative uncertainty) for U V because its value is usually larger than the value...
It is your 25th birthday (end of 25 years) and you decide that you want to retire on your 65th birthday (end of 65 years - 40 years later). Your salary is $55,000 per year and you expect your salary to increase by 3% each year for the next 40 years. When you retire, you want your retirement fund to provide an annual payment equal to 80% of your salary at age 65 and to increase by 2% a year...
1 Problem You have graduated and have a great job! You move to Ottawa and decide that you want to start saving to buy a house. As housing prices are very high in the Ottawa, you realize you are going to have to save for several years before you can afford to make the down payment on a house.You are going to determine how long it will take you to save enough money to make the down payment given the...
read instructions carefully please matlab only
Write a MATLAB function for a BMI calculator that receives the inputs for body weight (lbs)and height (ft) from the user's program, calculates the BMI using the equation below, displays the BMI category, and outputs the BMI value tothe user's program W (kg) h2 (m2) BMI Display Normal if 18.5 s BMI 25 Display Overweight if 25 s BMI <30 Display Obese if BMI 2 30 Else display underweight So you will create two...
DO NOT USE ARRAYS IF YOU KNOW ABOUT ARRAYS, I WANT YOU TO USE 3 VARIABLES, IT WILL FORCE YOU TO USE COMPOUND LOGICAL STATEMENTS FOR THE IF STATEMENTS. Create a program that will display a menu to the user. The choices should be as follows: Enter 3 grades Show average (with the 3 grades) and letter grade Show highest grade Show lowest grade Exit If you want to put the menu into a function you may. The program should...
please solve both questions 4&5 and solve all parts.
4) Your company manufactures 200 mg ibuprofen tablets. You randomly sample 25 tablets and measure their mass, then calculate the average mass X from this sample. You know that the standard deviation of tablet mass from your manufacturing process is ơ- 0 mg a. Specify a null and alternative process to determine whether or the mass of ibuprofen tablets from your process is 200 mg b. You reject the null hypothesis...
Use C++. In this project you will be tasked with writing a program to play a guessing game between another player and your program. Your program will start by initializing an array to 5 fixed values in the ranges of 1-1000 in the array. These values should also be in order (sorted). Your program will then begin by asking the player to make a guess from 1-1000. For the first guess of the user, your program will only tell the...