Question: Given a ( C ) program as shown below, please write similar programsin Java and Python on our Linux server, spcfcsc 0 1

Given a \( C \) program as shown below, please write similar programsin Java and Python on our Linux server, spcfcsc01.metros tate. exh. Please "cat" your programs before either compiling and ex ecuting or ex ecuting it with the testing casesprovided, and then include the corresponding screenshots below: (10 points)
A \( C \) program that reads a dom ain name from the comm and line and then split it into tokens and its executions with two testing cases are provided below:
```
[ics365fa2435@sp-cfsics:~/wk09$ cat wx08c.c
#include
#include
void main(int argc, char* argv[])
{
char myStr[80];
// Obtain the domain from the command line
strcpy(myStr, argv[1]);
// Locate the first token
char* myToken = strtok(myStr,".");
// Search for the next token till the end
while (myToken != NULL){
printf("%s
", myToken);
myToken = strtok(NULL,".");
}
}
[ics365fa2435@sp-cfsics:~/wk09$ gcc -o wx08c wx08c.c
[ics365fa2435@sp-cfsics: /wk09$ ./wx08c sp-cfcsc01.metrostate.edu
sp-cfcsc01
metrostate
edu
[ics365fa2435@sp-cfsics:~/wk09$ ./wx08c www.yahoo.com
ww%%
yahoo
com
[ics365fa2435@sp-cfsics: /wk09$
```
2.1) Please provide the screenshot of a similar program in Java with its execution on the two testing cases below (5 points):
2.2) Please provide the screenshot of a similar program in Python with its execution on the two testing cases below (5 points):
Given a \ ( C \ ) program as shown below, please

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!