Answer:
Kindly find the code snippet in the explanation written in kotlin language
Explanation:
fun main(args: Array<String>) {
var num:Int
println("Enter a num")
num= Integer.valueOf(readLine())
for(i in num downTo 1){
if(i==num){
print("Ready!")
print(" ")
}
print(i)
print(" ")
if(i==1){
print(" ")
print("Go!")
}
}
}
This function too can also work
fun numTo(num:Int){
if (num>0) for(i in num downTo 1) print("$i ")
println("Go!")
D. Both A and C because that is what I think
Answer:
A. ERP promises slow, but accurate information.
Explanation:
Option A. ERP promises slow, but accurate, information is incorrect. One of the most important aspects of Enterprise Resource Planning (ERP) has to do with time optimization through its "Automation" features which aim at cutting down several hours of staff work in performing tedious tasks. Accuracy in information is a must.
Among other important features and capabilities of ERP, it is worth mentioning:
1. Integration
2. Automation
3. Reporting
4. Tracking and Visibility
5. Data Analysis
6. Accounting
7. Customer Relationship Management
Answer:
result = 0
i = lo
while i <= hi:
result = result + i
i += 1
Explanation:
Initialize the <em>result</em> as 0 to hold the summation value.
Since we are asked not to change the value of <em>lo</em> and <em>hi</em>, our loop control variable is <em>i</em> and initially it starts from <em>lo.</em>
Since we are asked to add the number from <em>lo</em> to <em>hi, </em>while loop condition checks it.
While the condition satisfies (during each iteration), the value of <em>i</em> is added to the result and the value of <em>i</em> is incremented by one.