0 like 0 dislike
6.3k views

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)
ID: 32199 - Available when: Unlimited - Due to: 2017-11-15 16:30
| 6.3k 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
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:104.23.243.109
©2016-2026

Related questions

0 like 0 dislike
19 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 32015 - Available when: Unlimited - Due to: 2017-11-15 16:30
| 5.7k views
0 like 0 dislike
21 answers
[Exam] asked Nov 15, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 32695 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 6.9k views
0 like 0 dislike
22 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 31997 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 3.9k views
0 like 0 dislike
22 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 31985 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 4k views
0 like 0 dislike
20 answers
[Exam] asked Nov 14, 2017 in Mid-term examination by nat236919 (5.9k points)
ID: 31981 - Available when: Unlimited - Due to: 2017-11-15 16:10
| 3.3k views
12,783 questions
183,442 answers
172,219 comments
4,824 users