Answer:
Explanation:
The following is written in Java and prints out the pattern to and from the first num parameter that is passed to the function. Meaning it goes from num1 to 0 and then from 0 to num1 again. It prints all of the values in a single line seperated by a space and a test case was used using the values provided in the question. The output can be seen in the attached picture below.
static void printNumPattern(int n1,int n2){
System.out.print(n1 + " ");
if(n1<=0) {
return;
} else {
printNumPattern(n1-n2,n2);
}
System.out.print(n1 + " ");
}
They are several weaknesses or disadvantages of file processing
systems but the major weakness is data redundancy and inconsistency. By data
redundancy, I mean duplication of data. There are no better methods to validate
insertion of duplicate data in file systems. Data redundancy can also increase
the chance for errors.
Answer:
The Internet is a globally-connected network of computers that enables people to share information and communicate with each other. An intranet, is a local or restricted network that enables people to store, organize, and share information within an organization.
Explanation:
print("welcome to the bill calculator")
minutes = float(input("number of minutes you used: "))
data = float(input("the amount of data you used in GB: "))
print("your basic plan costs $39.99 per month")
mcost = (minutes - 450) * .45
print("you will be charged " + str(mcost) + " for the minutes you used")
print("the monthly data fee is $30.00")
dcost = (data - 3) * 10
print("you will be charged " + str(dcost) + " for the extra data you used")
total = mcost + dcost + 69.99
print("your total bill is " + str(total))
the 20 value your teacher gave may be incorrect, bc 4.2-3*10 = 12 not 20, making the total 109.89
I think it might be short range and long-term