Please provide additional information in order to provide an answer to your question.
Answer:
#include<stdio.h>
#include<string.h>
int main(){
char str[20];
int i=0;
printf("Enter a name: ");
gets(str);
printf("%c",*str);
while(str[i]!='\0'){
if(str[i]==' '){
i++;
printf("%c",*(str+i));
}
i++;
}
return 0;
}
Explanation:
Answer:
number = int(input("Enter number: "))
if (number % 4):
print("{} is not divisible by 4".format(number))
else:
print("{} is divisible by 4".format(number))
Explanation:
If the %4 operation returns a non-zero number, there is a remainder and thus the number is not divisable by 4.
Answer:
All the procedure is explained below step-by-step
- Press alt+F11 to open VBA in excel.
- Create a module and start entering the subroutine.
- The coding of subroutine is attached in the image.
For adding "RUN" button:
- Select a shape on the sheet for the button.(Insert > Shapes > Rectangle).
- Double click on the shape to add text and write "RUN".
- The button can be styled by adding colors and shadows.
- Now Assign macro to the button (Right click > Assign macro).
- A window pane will appear, select the macro from This workbook list so that it may work properly when shared with others.
- Press OK.
- "RUN" button has been created and by pressing it the subroutine will work as required.
Answer:
1) Execution time speed
2) Responsiveness
3) use of multi-processor architecture
4) sharing of resources
5) use of resources
Explanation:
The Distinct features are
1) Execution time speed : The time of execution in a multithreaded programming is lesser than a Non multithreaded programming which means the execution speed is faster
2) Responsiveness : Multithreaded programming languages are more responsive because every thread in the language is independent of others hence they can respond/generate responses based on its execution
3) Multithreaded programming makes use of multi-processor architecture given that each response from the threads are simultaneous
4) Ease in sharing of resources by the multiple threads found in the programming
5) Light weight of threads makes the need for resources by the threads in the programming language to be lesser when compared to other programming languages