Answer:
#include <stdio.h>
#include <string.h>
int main(){
char number[100];
printf("Number: ");
scanf("%s", number);
int sum = 0;
for(int i =0;i<strlen(number);i++){
sum+= number[i] - '0';
}
printf("Sum: %d",sum);
return 0;
}
Explanation:
This declares a c string of 100 characters
char number[100];
This prompts user for input
printf("Number: ");
This gets user input
scanf("%s", number);
This initializes sum to 0
int sum = 0;
This iterates through the input string
for(int i =0;i<strlen(number);i++){
This adds individual digits
sum+= number[i] - '0';
}
This prints the calculated sum
printf("Sum: %d",sum);
return 0;
Answer:
See explaination for program code.
Explanation:
inputFileName = input("Input filename: ") outputFileName = input("Output filename: ") inputFile = open(inputFileName, "r") outputFile = open(outputFileName, "w") count = 1 for line in inputFile: newLine = str(count).rjust(4, " ") + "> " + line outputFile.write(newLine) print(newLine) count += 1
Answer:
One of the guitarists is playing too loud.
Explanation:
My dad plays the guitar...?
I'm shocked it's not "not keeping a steady beat", so I'm certain this is it.
Answer:
Data sequencing is the sorting of data for inclusion in a report or for display on a computer screen.
Explanation:
Answer:
A. Xcode libraries
Explanation:
We have to find a requirement for developing game applications on devices running Apple’s iOS operating system. For that, I will evaluate each answer.
A. Xcode libraries
Xcode can be generally defined as a development kit or integrated development environment to facilitate the Apple software development. Apple use iOS operating system for its devices. To develop anything compatible with iOS, you generally have to code it using Xcode. Obviously, each development kit includes libraries for project to be built. Therefore, this option is correct.
B. Android Development Kit
Just like Xcode, Android Development Kit is used to build the software for android. It is pretty much comprehensible from its name. So, this option is false.
C. ARM technology and D. advanced microprocessors
These both options are related to hardware and available on both the devices. It is used for overall processing but these options are not that relevant to iOS operating system. Therefore, these options are false too.
So, Correct option is Xcode libraries.