Artificial Intelligence, based on neural networks, is available now.
Answer:
If you code a column list in an INSERT statement that includes a column that’s defined with a default value, you can insert the default value for that column by coding the DEFAULT keyword in the VALUES clause of the INSERT statement.
Explanation:
SQL permits insert the DEFAULT value on the columns when is required. Suppose the column has a NULL constraint(values on this column can not be set in null), then you can pass the default value.
For example:
INSERT INTO table(field1, field2, field3, field4) VALUES (10, DEFAULT, 20, DEFAULT)
i = 1
while i < 10001:
total = 0
x = 1
while x < i:
if i % x == 0:
total += x
x+=1
if total == i:
print(str(i)+" is a perfect number")
i += 1
When you run this code, you'll see that 6, 28, 496, and 8128 are all perfect numbers.
Answer:
Task 1: T = c + (2.5n(A/M))+ m(1+r/100)ⁿ
Task 2: In both 5 & 10 years, Car A is more economical
Task 3: Printing returns the answer in a different dialogue box while return displays the answer in the same window.
Explanation:
Task 1:
C = Cost of car
n = Number of years
m = Maintenance Cost
r = Rate
M = Mileage per gallon
A = Annual mileage
T= Total Cost
T = c + (2.5n(A/M))+ m(1+r/100)ⁿ
Task 2
Car A In 5 years; T = 20000+ (2.5*5(15000/25))+1300(1+0.15)⁵= $30115
Car B In 5 years; T = 30000+ (2.5*5(15000/32))+1000(1+0.10)⁵= $37470
Therefore in 5 years, Car A is more economical.
Car A In 10 years; T = 20000+ (2.5*10(15000/25))+1300(1+0.15)¹⁰= $40259.225
Car B In 10 years; T = 30000+ (2.5*10(15000/32))+1000(1+0.10)¹⁰= $ 44312.49
Therefore in 10 years, Car A is still economical.
Task 3: Printing returns the answer in a different dialogue box while return displays the answer in the same window.
No they shouldn’t Because we all have the rights to pick our selves