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.
Federal Work Stupid Program
Geographic segmentation is particularly important for international businesses: True.
<h3>What is an international trade?</h3>
International trade can be defined as a strategic process which typically involves the exchange (buying and selling) of goods, capital, and services (economic transactions) between two or more countries or across geographical borders.
<h3>What is
geographic segmentation?</h3>
Geographic segmentation can be defined as a process that typically involves a business firm dividing its target market (consumers or customers) based on geographical location, in order to enable it tailor its marketing efforts efficiently and effectively.
Read more on geographic segmentation here: brainly.com/question/18103744
#SPJ1
Answer:
so wdym!!! what to do. tell anything properly
Answer:
See Explaination
Explanation:
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class GradesAverage {
private static int checkNum(String num) {
int tmpNum;
try {
tmpNum = Integer.valueOf(num);
} catch(IllegalArgumentException e) {
System.out.println("You did not enter an integer.");
return -1;
}
return tmpNum;
}
private static boolean validNum(int num) {
if(num>=0 && num<=100) {
return true;
}
System.out.println("You did not enter an integer, try again