Answer:
The code is given below
Explanation:
The correct syntax would be to place appropriate parenthesis.
(month==1?"jan":(month==2?"feb":(month==3?"mar":(month==4?"apr":(month==5?"may":(month==6?"jun":(month==7?"jul":(month==8?"aug":(month==9?"sep":(month==10?"oct":(month==11?"nov":"dec")))))))))));
Similarly, you can also use the following code:
String[] months = { "jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec" };
int month = 1;
String monthDescription = months[month - 1];
Answer:
Below are the program for the above question:
Explanation:
#include <stdio.h>//header file.
int main()//main function.
{
int value; //variable declaration.
printf("Enter a number to find its roman value: ");//render a message for the user.
scanf("%d",&value); //take a value from the user.
switch(value)//switch case starts
{
case 1:
printf("I");
break;
case 2:
printf("II");
break;
case 3:
printf("III");
break;
case 4:
printf("IV");
break;
case 5:
printf("V");
break;
case 6:
printf("VI");
break;
case 7:
printf("VII");
break;
case 8:
printf("VIII");
break;
case 9:
printf("IX");
break;
case 10:
printf("X");
break;
}//switch case ends.
return 0;//return statement.
}
Output:
- If the user inputs as 4, then the output is "IV".
Code Explantion :
- The above code is in c language, in which the scanf function is used to take the inputs from the user.
- Then the value match from the switch case and display the suitable result.
- And the user get the roman value from the user.
Answer:
(GUI) stands for Graphical User Interface
Answer:
<em>the</em><em> </em><em>correct</em><em> </em><em>answer</em><em> </em><em>is</em><em> </em><em>a.</em><em> </em><em>Word</em><em> </em><em>processing</em><em>.</em>
Explanation:
<em><u>hope</u></em><em><u> </u></em><em><u>this</u></em><em><u> </u></em><em><u>works</u></em><em><u> </u></em><em><u>out</u></em><em><u>!</u></em><em><u>!</u></em><em><u>!</u></em><em><u>!</u></em><em><u>!</u></em>
<span>A. TRUE is a formula calculation
</span>