Question: Use the specific constructions and the characteristics of each programming language to write the following programs: The input is from standard input, and all output
Use the specific constructions and the characteristics of each programming language to write the following programs: The input is from standard input, and all output is standard output. Use the constructions in the slidesexamples and avoid using builtin functions that are not necessary, or you can program these functions yourself mainly for mathrmCmathrmPhpmathrmPerl
marks each program, maximum Write a program in C also in C Pascal, Cobol, Fortran, Perl, PHP ADA, and C# that computes the sublist S of a list LleftXldots Xnright obtained as follows:
a The first element of the sublist S is an odd number in list L
b No odd number in L has an index lower than the index of the element selected at the previous step a
c The last element of the sublist S is an even number in list L
d No even number in L has an index higher than the index of the element selected at step c
e All the other elements of the sublist are the cubes of the elements of the first list, having indexes between the two selected numbers.
f If such numbers like the ones mention in Step a or Step c do not exists for the input list, the program should display an appropriate message, and the sublist S is an empty list.
All the situations generating an empty list should be detected by your program.
List must be stored as arrays. You choose the exact format of the input data, but it must be documented.
Here is a possible example of running a program:
$cc xx o x
$x HERE
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
