<span>“Detail Report for 15-1199.11-Archeologist.” O*NET OnLine. n.p., 2012. Web. 5 May 2013.</span>
Answer:
A computer
Explanation:
I need this for for school purposes and slightly for entertainment. Regarding what would happen if it was taken away for a week, I would most likely fail a class or two based on the standards they measure by. Quite frankly, it's not that I'm crazy about having it, it's the fact that I need it for the time being if I wish to further accel in the world and get to where I want to be. I use it for about 5 or 6 hours a day. This is the technology I don't want to do without.
Have a great day.
Answer and Explanation:
Here the programming language swift is being used. There is a slight error in the program shown above:
var userInputAge=9
func checkage(age: String)->int?
{
if let age_type = Int(age)
{
if age_type > 18 {
return "Welcome!"
}
else if age_type < 18 {
return"Sorry, but you aren't old enough to use our app."
}
}
else {
return "Sorry, something went wrong. Can you please re-enter your age?"
}
return age_type
}
The program should be revised :
func checkage(age: int?)->String
{
if let age_type = Int(age)
{
if age_type > 18 {
return "Welcome!"
}
else if age_type < 18 {
return"Sorry, but you aren't old enough to use our app."
}
}
else {
return "Sorry, something went wrong. Can you please re-enter your age?"
}
return age_type
}
We call the functions :
checkage(userInputAge)
checkage("15")
Note: we revised the program for errors in the first line of the code where the int optional parameter(int?) was supposed to be used instead of the String parameter in the function. We then called the function using the userInputAge variable defined as the parameter and then we now also used a String as the parameter for calling the function the second time.