Answer:
import java.util.*;
public class Main {
public static void main(String[] args)
{
Scanner scan = new Scanner();
double budget=0, num=0, total=0;
System.out.println("Your budget for the month? ");
budget=scan.nextDouble();
System.out.println("enter all expense, and after that type -9999 to quit: ");
while(num != -9999)
{
total+=num;
num=scan.nextDouble();
}
if(total<=budget)
{
System.out.println("under budget by ");
System.out.println(budget-total);
}
else
{
System.out.println("over budget by ");
System.out.println(total-budget);
}
}
}
Explanation:
- Take the budget as an input from user and store it to the budget variable.
- Loop until user has entered all his expenses and keep on adding them to the total variable.
- Check If the total is less than or equal to budget or otherwise, and then print the relevant message accordingly.
Answer:
function outputValue = AdjustOutput(outputValue, amplitudeResponse, phaseResponse)
if amplitudeResponse > 10
outputValue = outputValue - 5;
else
outputValue = outputValue;
end
if phaseResponse < 275
outputValue = outputValue + 3;
else
outputValue = outputValue
end
end
AdjustOutput(20, 15, 149)
The only way is if you have backed up everything! Computers are amazing but they don't know that you need to back up your info. You should back up everything regularly!
Hope this helped and have a nice day!
Answer: Basic Combined Programming Language
Explanation: it is a procedural, imperative, and structured programming language, originally intended for writing compilers for other languages.
The Operating system kernel, a component of all operating systems, interprets these signals by the use of a device driver, so the answer to your questions is a "driver". <span />