Def sum_digits(s): result=0; isSummed=False; for char in s: if char=="0" or char=="1" or char=="2" or char=="3" or char=="4" or char=="5" or char=="6" or char=="7" or char=="8" or char=="9": result+=int(char); if not isSummed: isSummed=True; if not isSummed: raise ValueError(); else: return int(result);
Answer:
How to convert the hours into minutes and seconds?
We know that there are 60 minutes in an hour, and there are 60 seconds in a minute. But here, we only have the value of hours as an input. We have to convert that input into minutes and seconds. So, the formula to convert the hours into minutes and seconds is -
Now, let's see the programs to convert the hours into minutes and seconds.
<em>a program to convert the hours into minutes and seconds in C language :</em>
#include <stdio.h> void conversion(float hours) { double minutes, seconds; minutes = hours * 60; seconds = hours * 3600; printf("There are %lf minutes in %f hours", minutes, hours); printf("\nThere are %lf seconds in %f hours", seconds, hours); } int main() { float hours; printf("Enter the value of hours: "); scanf("%f", &hours); conversion(hours); return 0; }
1. B
2. B
3. C
i could not get the rest and for the matching, there were not any choices
Answer:
b. IT infrastructures and services
Explanation:
IT infrastructure or information technology infrastructure refers to the various components involved in the functioning of an IT enabled operations. These components include; hardware, software, network resources, etc.
It is usually internal to an organization and deployed within the confines of its own facilities.