Answer:
balance = float(input("Enter the current credit card balance: "))
purchases = float(input("Enter the amount of new purchases: "))
payments = float(input("Enter the amount of all payments: "))
unpaid = purchases - payments
if unpaid >= 0 and unpaid < 100:
balance = balance + payments - purchases - (unpaid * 0.08)
elif unpaid >= 100 and unpaid <= 500:
balance = balance + payments - purchases - (unpaid * 0.12)
else:
balance = balance + payments - purchases - (unpaid * 0.16)
print("The balance is " + str(balance))
Explanation:
*The code is in Python.
Ask the user to enter the balance, amount of purchases, and amount of payments
Calculate the unpaid balance, subtract payments from purchases
Check the unpaid balance. If it is smaller than 100, calculate the new balance, add payments, subtract purchases and the 8% interest of unpaid balance. If it is between 100 and 500, calculate the new balance, add payments, subtract purchases and the 12% interest of unpaid balance. If it is greater than 500, calculate the new balance, add payments, subtract purchases and the 16% interest of unpaid balance
Print the balance
Answer:
A. To ensure that management and the team has a clear picture of the state of the project
Explanation:
hope this helps!
Answer:
A
Explanation:
Answer:
The output is 20
Explanation:
This line divides the value of x by userVal
tmpVal = x / userVal;
i.e.
tmpVal = 100/5
tmpVal = 20
This line then prints the value of tmpVal
System.out.print(tmpVal);
i.e 20
Hence, The output is 20
The provided Java code checks if the variable userVal does not equal 0. As this is the case when userVal is 5, another variable tmpVal is assigned the value of another variable x (which is 100) divided by userVal. Hence, the output of the code would be 20.
In the given piece of code, the variable userVal is assigned a value of 5. The program also contains a variable x which is assigned a value of 100. An if statement checks whether userVal does not equal 0 - since 5 != 0, the condition is true. A new variable tmpVal is then declared and assigned the value of x divided by userVal, so tmpVal equals 100 / 5, which is 20. So, the output of this code when userVal is 5 would be 20.
#SPJ3
(b) put "hi";
(c) puts "hi";
(d) none of the above
Answer: (A) Puts("hi");
Explanation:
Puts() is the type function that uses the file handling in the programming language. It basically use to compose or write the function or line that displaying the output screen of the computer system.
The puts() function is the type of function which basically allow the user to read the characters or line include all the space until entering into the new character or line.
The declaration of the puts(0 function is as follows:
int puts (char *STRING);
Answer:
a
Explanation:
Answer: the answer is 1
Explanation:
edge 2021
A firewall is either software or dedicated hardware that exists between the network and the resource being protected. this network security device monitors traffic to or from the network. It is based on set of rules about what data packets will be allowed to enter or leave a network.
Table
Form
empty location
Answer: Physical location
Explanation:
If we place records from, different tables in adjacent physical location, it would increases efficiency of a databases as, database consolidates records from previously store in separate files into a common file. Databases are fast and efficient when they are dealing with large data. When all the information is stored in multiple physical location it is also known as distributed database, as physical location helps to provide the physical and logical path and also protect from default locations in the database.