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, spcfcscmetros 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: 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:
icsfa@spcfsics:~wk$ cat wxcc
#include
#include
void mainint argc, char argv
char myStr;
Obtain the domain from the command line
strcpymyStr argv;
Locate the first token
char myToken strtokmyStr;
Search for the next token till the end
while myToken NULL
printfs
myToken;
myToken strtokNULL;
icsfa@spcfsics:~wk$ gcc o wxc wxcc
icsfa@spcfsics: wk$ wxc spcfcscmetrostate.edu
spcfcsc
metrostate
edu
icsfa@spcfsics:~wk$ wxc wwwyahoo.com
ww
yahoo
com
icsfa@spcfsics: wk$
Please provide the screenshot of a similar program in Java with its execution on the two testing cases below points:
Please provide the screenshot of a similar program in Python with its execution on the two testing cases below points:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
