0 like 0 dislike

14. Please write a program that receives 'A' or ‘a’ then outputs 'A'-'Z'.

However, if these characters (C, F, K, V and U) appears, it will show '*' instead.

Template

#include <stdio.h>
int main(int argc, char *argv[]){
int i;	
char input;
scanf("%c",&input); // DO NOT change   // NO need to use ("Enter input: ")

// your conditions start from here

return 0;
}

Input1

A

Output1

AB*DE*GHIJ*LMNOPQRST**WXYZ

 

Input2

a

Output2

AB*DE*GHIJ*LMNOPQRST**WXYZ
[Exam] asked in Mid-term examination by (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:30
| 160 views

18 Answers

0 like 0 dislike
Hidden content!
* **** * * **
* * * * *** ** * * *

/* run ** * * the * * *** * or add your own * * * ** * * ** or ** loop */

int * ** *** * char ** * {

***** * * ** * char x;
** ** ** ** * * ** * * * * * * * *
** ** *
* *** ** ** * = 'A'; x * *** 'Z';
** *** * ** * * ** * ***** * * * || * * || *** || * ** || * *
**** * *** * * ** ** * ** * *** * * * ** ****** ***
* ** * **** * * }
* * *** * *** * * * ** **
*** * * * *** ********* ** *** ** *** * ** x);
* **** * ** ** * }
* * * ****
}
100/100 answered by (192 points)
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
*** * * ** ** * *
* * * ** char * * *
int ** ** ** ***
char *
* * **** ** * * *** // DO NOT * ** * * * ** * NO need to use ** * * * * **

// * * * ** ** *

* * *
* =

* *** ** *** **** * * * *


* * **** * ** * * * **** * ** * ***** **
* * * * ** ** ** *

* *
** * ****** ***** * * * **

}
}
100/100 answered by (221 points)
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
*** * * *****
** ** * * * ***

/* run ***** * the ** *** or add your own * ** ** * *** ***** * * or * loop */

int * * char ** * {

****** * *** char x;
*** * **** **** ** *** * *** * **
* ** ** ** *
***** ** *** ** * = 'A'; x *** 'Z'; **
** * * * * * * ** * * || * || ** || * * || * ****
* * * ** ** **** * * *** * ** *** * *** *** ******
*** ** ** * * *** * ** }
** * *** * * ** * * * *
* * ** ** * * * * * * **** ******** x);
** ***** *** }
** **** * **
}
100/100 answered by (183 points)
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
#include * ** * *** **
int main(int argc, char ****
int * * * * *
char input;
**** * *** * * **** * // DO NOT change ** **** * * NO need to use * * * * * input: * *

** ** * *** * **** ** ** ** == 'a'){
*** ** * ** * ** * * ** * *** ** *** * *** ='A';
* * * * * }



* ** * * * *
*** *** ** ** **
**** * * ** ***** * * * == 'C'|| input == 'F'|| * * * ** * * *
* * ** * * ** * *** * ** *** * *** * * *** * * *
* *** ** *
**** * **** * * * **** *

* * *** ** *** * **** * ** *** *** *** *** * ** input);
* ** *** ** * * * * ******* ** ** ** **

}
return 0;
}
100/100 answered by (153 points)
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
** ** ***
* *** * ** * * * *
*** * * ** ***
char *
*** * ***** ***** * ***
** * * = 'A'; *** * ** * * * ** *
* ** * *** * * * * * * == 'C' || ** == 'F' || *** == 'K' || * == 'V' || == 'U' ){
* * *** * *** **** ** ** * *** * ** ** * ** *
*** * *** ** }
**** * * * *
* *** * ** * * *** ** ** ***
}

** ** 0;
}
100/100 answered by (220 points)
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
* * * ** * ***
*** * *** * * * ** *

** * *** * * *** *** *** or * ** * * ** * * *** * ******** or * */

** * ** * * * {
***** * ******
***
* ** * * ********* *

* * * ** * * = ** i * * *

* * * if (i == || i == || i == * || i == ** || i == * *
* * * * * * **** **** * **
* **** * ** * }
* *** ** *

** * *** **
** *** *** *** * ** *** ** * * * **
** * * * **** **
}
* *** ***** ** ** 0;
}
100/100 answered by (269 points)
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
** * * ** * * * *
int * * * argc, char * * **
int * **** **
char * * *
***** * * ** * * * ** * * // DO NOT *** ** * ** ** NO need to use *** * * ** * *** * *

// your * start from here
* * * * * * *** * ***** *****
** ** * ***** ** ** * * **** * * * **** *
* * ** * * *** *** * * ** ** ** ** ** *
* * * ** * * ** }
* **** **** * else{
* * * * * ** * *** ** * ** * * * ** * *** ** ** * **
* ** * ***** }
}
* * * 0;
}
100/100 answered by (246 points)
edited by
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Correct output
Case 1: Wrong output
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
* * ****
int ** ** argc, char * ** *
int * * *
char input;
** * ** * * * * * ** ***** // DO NOT ****** * * NO need to use *** * * * ** *

***** * ** for(i = 'A'; * * ;
* * ** * * * ** *** * * **** ** * * **** ** ***
** ** * * * * * * * ** ** * * * ** **** * *****
** ** * ** ** * * * else
* ** * * * **** * ** * **** * **** * * **** *** * *** ** ** * * *
*** * * ** }
***** * ** *


** * 0;
}
50/100 answered by (269 points)
0 0
Case 0: Wrong output
Case 1: Wrong output
0 like 0 dislike
Hidden content!
** * ***** * *
int * * argc, char * * **
int ******* *
char input;
* * ** * * * * * ****
if ** *** *
}
**
* * ** * *
*** * * if * ** * * *** ****** ***** * *
**** *** * * * * *** * ** ** *** * *
** ** ** }
** ** ** else{
***** * * * ** * * * * ** ** * * ** input);
** ** *** * }
}
return 0;
}
100/100 answered by (283 points)
edited by
0 0
Case 0: Wrong output
Case 1: Wrong output
0 0
Case 0: Correct output
Case 1: Wrong output
0 0
Case 0: Correct output
Case 1: Correct output
0 like 0 dislike
Hidden content!
#include<stdio.h>

int main(){
** ** ** ** ****** * * *** * input;
** *** ** ** * ** * * ** ****** ** &input);

    for(;input<='Z';input++) {
** * * ** * ** ***** ** *** **** * * * ** * *** * * * ** * * * *** * * *** {
* ** ****** *** ****** ****** ** *** * * * ** * * * ** * * ** * ** *** *
** * ******* *** * ** * ** * * * *** *
* * ** ** ** ** * * ** **** ****** ***** {
** * * * ***** ** *** * ** * ** ** * ** * **** *** * ** * * ** *** ** * ** * * ** ** input);
* * * *** * *** ** **** * ** *** * *** * *** *  
}
}
50/100 answered by (273 points)
0 0
Case 0: Correct output
Case 1: Wrong output
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.63.143
©2016-2020

Related questions

0 like 0 dislike
19 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:30
| 236 views
0 like 0 dislike
21 answers
[Exam] asked Nov 15, 2017 in Mid-term examination by nat236919 (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:10
| 195 views
0 like 0 dislike
22 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:10
| 116 views
0 like 0 dislike
22 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:10
| 110 views
0 like 0 dislike
20 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
Available when: Unlimited - Due to: 2017-11-15 16:10
| 97 views
10,551 questions
115,288 answers
103,025 comments
3,766 users