C-language software:
What are its inputs?
What are its outputs?
What decisions does the software have to make?
Below is a c-language software that will prompt user to enter two string (Software's input).
Now this software will compare and decide if the string are reverse of each other or not. (Software's decision)
Finally it will print if the string's are revserse to each other or not (Software's output).
Example:
suppose two strings are dog and god.
now it will reverse one of the entered string let's say first one
than first string will be : god and second is god already.
Now it will compare each character with other string character if all characters are same than it will print string are reverse to each other,else it will print strings are not reverse to each other.
Please have a look of code below:
--------------------------------------
#include <stdio.h>
#include <string.h>
int main(int argc, char** argv)
{
//declare two strings
char string1[100];
char string2[100];
printf("Enter string 1 : ");
scanf("%s",string1);
printf("Enter string 2 : ");
scanf("%s",string2);
//check if lengths are not same
if(strlen(string1)!=strlen(string2)){
printf("The string are not the reverse of each other");
return 0;
}
//now check for each character
long unsigned length = strlen(string1);
long unsigned i;
for(i=0;i<length;i++){
if(toupper(string1[i])!=toupper(string2[length-i-1])){
printf("The string are not the reverse of each other");
return 0;
}
}
printf("The string are the reverse of each other");
return 0;
}
output:

C-language software: What are its inputs? What are its outputs? What decisions does the software have...
How many inputs & outputs does the sequential circuit
represented by the following graph have?
XY PS
What are the input and outputs of the engineering process, in software requirements?
Write MARIE assembly language programs that do the following: I. Write a program that inputs three integers, a, b, and c, in that order. It computes the following ia-bi-fc+ c The result should be written to output 2. Write a program that inputs integers, s. y, and z. It outputs the difference of the langest and first element entered. You may assume x. y, and z all have different values. So if 8, 12, and 9 are input, the output...
2. What are the full-adder inputs that will produce each of the following outputs
12. What is true about IGOE diagram? (a) It stands for inputs, guides, outputs, and enablers (b) It stands for inputs, guides, outcomes, and enablers (c) An IDEF0 diagram is essentially a sequence of IGOE diagrams (d) Both a and c (e) Both b and c
How does the role of inflation affect decisions that you have to make? What is the unemployment rate in your local area and in your state? How does this compare to the national average and why is this rate so important to evaluate?
May you also explain the answer if possible
please
race the inputs & outputs of the 2-input NAND gates shown in Fig-C, then complete the truth ble show o Tracon in Table-C. What logic function can be achieved by this combination ? Input Output AIB Fig-C Table-C D) Trace the inputs & outputs of the 2-input NAND gates shown in Fig-D, then complete the truth table shown in Table-D. What logic function can be achieved by this combination ? Input...
- US+ U S The Values for L and C Inputs V, and I outputs to and i Giveni R, =12, R₂=202, R3=352, L=H, C = 15 Find: a) state-space representation b) Stability c) controllability d) observability رم
Consider a PLC system with the following inputs and outputs. Design a ladder diagram using one and only one counter instruction and as many timers as you need that does the following: 9. Every time S1 is turned from off to on, it causes a counter to increment its accumulated value. . Any time that S1 stays on for 10 seconds, PL1 should light until $1 is turned back off " Any time that S1 is on, PL2 flashes on...
9. Consider a PLC system with the following inputs and outputs. Design a ladder diagram that does the following: • A timer counts up to 1.5 seconds, resets itself, and then repeats Every time S1 is on and the timer makes it to 1.5 seconds, a counter increments its accumulated value. PL1 turns on any time that the count of the counter is 20 or higher. The counter should be reset whenever PL1 is first turned on (i.e. transitions from...