Toggle navigation
Courses
Questions
Tags
Users
AD 20160929 作業 1
0
like
0
dislike
4.7k
views
請設計一個程式當使用者輸入一個分數(介於0-100間),程式會輸出相對應的等第
輸入範例1
100
輸出範例1
A
輸入範例2
59
輸出範例2
F
[Exercise]
Coding (C)
-
asked
Sep 29, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 11603 -
Available when:
Unlimited
-
Due to:
Unlimited
|
4.7k
views
comment
0
0
Called for Help
Please
log in
or
register
to add a comment.
73
Answers
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
float gra=0;
printf("Input your grade:\n");
scanf("%f",&gra);
if(gra>=90)
{
* * ** ** * ** * * * ** * * * ** *** * ***** *** * * ********** ** ** **** * * ** * ** * * ** * **** * ******
}
else if(gra>=80)
{
*** ** * * *** ** *** ****** * * **** * * * * ** *** *** * *** * * * * * * ** **** *** * * * * *** * ** * *** ** *** * ** ******* * *
* * * * * * ** ********** * * * * * *** *** * ** * * * * * ****** * ** * * * ** ** **** * * * * * * ** * *** * **
* *** ****** * * *** ** ** ** * * **** ** ** ** *** * * ****** * * ** * * ** * ** ** * * * * ** *** ** ** *** ** **** if(gra>=70)
* * ** * * ** **** * * * ** * * *** * * * ** * * * *** *** ** ** ********* ** * * * ** * **** * * ** * * * * ** **
*** ** * * ** * * * *** ** * * * * * * * * * * ** * * * ** *** *** * ** * * * * * *** ***** * * **** *** ** * * * * **** ** *** * *** * *** * ***
***** * * *** * * * * ** ** ***** * **** * * **** ** * ** * ** * *** ****** * *** ****** * ** ** * ** ** * * * * * ** ** *** *** * *** ******* ** *
* * ** * * * ** ** *** * *** *** ** * * * * ** * ** * * *** * ***** ******* ** **** ***** * * *** ***** * * * ** ** * * * *** * *** if(gra>=60)
** * * * * ** * ** ***** * *** ********* **** ** * ** ** * * ** * ** **** * *** * * ** * * * ** *** ** * ***** ** ******** * * * * *
* * * * ** **** ** * *** ** * *** * **** * * * * ** * * * * * ***** ***** * ** *** * * * * * ** **** * ** * *** * ** ***** ** **** *** * * * ** * * ** * *** **** **
* ** * * * *** * ***** * * ** * * * * ***** *** ** * ** ***** ** ** *** ** * ** *** * ** * ** * * * * * ** * * ************* * ** ** *** * * *** *** * *** ** * * * ** *** ***
*** ** **** * * ********** * * ** ** ****** * * * ** ** ** * * *** * ***** * *** **** ** ** * * * **** ******* ** * * ** * * * * * * ** *** ******* * **
* * * * * * ** * * *** * * * *** * * ** ** *** * ***** **** ** ** * ** * * * *** **** * *** * ** ** * * *** ******** ** * ** * * * ** * *** *** ** * * ** * ** * *** **
* ** * *** *** ** ** ** * * *** * * ******* ** * * ** ** * ** ****** * * * *** ** * ***** ** ** * * **** *** ****** ********* * ***** *** *** * ** ****** ** ** * ** ** * * **** ****** ** * *
** * ** *** * * **** ***** * * *** * *** * * ** * ** * * ** ** * * * *** * * **** ****** * *** * ** * *** **** * *** ** ** ** ** ****** **** * * ** ** * ** **** ** * * * *** *
* ** ** ***** * * ** * *** * * * * *** * * ** * * * * ****** * * * * * *** * *** * * ** ** * *** ***** ** ******* ****** * *** * * * * ***** * ** * * * ** ** ** * * * ** ** * ** *** ***** * ****
* * ** ** ** ****** * ** *** * * ** * * *** *** * *** ***** ** * * **** * * * * * **** ** ** * * ** ** ****** * *** * * * * * * ** * ** *** * * * * ***** ****** ** *** * * * 0;
}
answered
Sep 29, 2016
by
steven0221
(
-90
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
int score=0;
printf("Please input your test point:");
* * ** * * ***** * ** ** *** ******** * ** * *** ** * *
if (score<90)
{
** * ** *** ** ** * * * * * * * *** * ** ** * * ** * *** * ** **** ** * ** **** * * *** * (score<80)
** * * * ** * * * * * * ** *** ** ** ********* * ** * * * ** * *** * * ** ** * ****** **** ** ** *
** * * *** * * * ** **** * ** ***** ** **** ** * * ** * * *** *** ******** * * *** * * * * ** * **** * * *** * * ***** * ** ** ******** * *** ** * * (score<70)
**** * * ** * *** *** *** ** ** *** ** **** * * * ***** * * * * * * * * * * * **** ** *** *** * * ** * ** * ** ** * * ** * * * ** * ** ** *
***** * * * * *** * * * ***** * *** * * * * ***** *** ***** * * *** * ****** * * ** ****** * ****** * * *** * * * ******* *** * * * * * ** * * * * * * ** * **** *** ** * * ** ** * *** ** * * * * **** * * *** * *** * ** (score<60)
** *** ** * * * ***** * ****** * * * * ** * **** *** * * * * * ** * **** * ** * * * * * * * ** *** ** * * * ** * ***** *** * * ** *** ** *** *** **** ** * ** * * * * **** * **** * * ** *** * * **** * * ****** * ** ***** ** ** **** **** *
* ** * ** * ***** ** *** * * *** * * * * * *** *** ****** *** ** ****** ** ** ** **** ** * **** * * * ** ** * * * ** *** * * ** * *** * ***** * ** ** * * ** * * ** * * *** * * ** * *** * * * ** ** *** * * **** * *** ** ***** *** ** **** *
* ** ** * ** * ** * **** **** *** * ** *** * * * ** * * * * ** * *** * * ** * * **** * * **** ***** * ***** ****** * *** * ** ** * * * **** * ** *** * *** ** *** * ** * ****** ** * ** *** **** * * * * * * * * * * * * ** * * ** * *
** *** * * ** ** * * *** ***** ********* * * * * * ******* * * ** ** * ** * ** * * * *** ** * * *** ** * * * * * * * ** ***** * *** *** * *
* ** **** *** *** ** *** * ** *** * * * ** * * **** * ** * * ** * *** * * * ** * * ** ** *
* * ** ** **** * ** ** * ** * ******** * *** * ** ** ** ** * * * ** * * **** * * * * **** *
** * ** ** * * * ***** ***** * * * * ******* * ** *** ** ** ** * ** * * * * ** * *
else
* *** ** ** * * * ***** *** * * **
}
else
puts("A");
* * * **** *** * ** * ** ** * *** ***
return 0;
}
answered
Sep 29, 2016
by
410423016
(
-170
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
int main()
{
int n;
* *** ** * *** * * * *** *** * * * *
* ** * ** * *** ** >= 90)
* * ** *** * ** ** * * * *** ** ** *** ***** ** ** ****
* * ** ****** * ** ***** if(n >= 80)
* *** ** * *** ***** ** **** * ** ** * * *
* * * ** * ** * ** * if(n >= 70)
** * * * *** * * * ** ** * ** * * ** * * ** * ** ** **** *
****** **** *** * * *** if(n >= 60)
* * * ** ** ** ** * * *** * ** * * ***** * ***
* ***** ** ***** **** **
** ** * ***** **** * *** * * ** *** **** ** * * *
*** * *** ** * ** ** * 0;
}
answered
Sep 29, 2016
by
Shun-Po
(
18k
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
int main()
{
int t;
** ** **** * * *** **** * input your grade:");
* ***** * *** **** * ** * ** ** ** **** * *
* * * ** * * * ** *** ** ** (t>=90)
*** * *** *** ** * **** * ****
** * ** * * * ****** * **
*** ** *** ********* ** * * ** ** (t>=80)
**** ** ** ** * * * *** * ** ** **
* * * ** * * ** ** ** ** ** *
*** * * * * * ***** * ** (t>=70)
* ** ** * * *** * * * ******* *** * ** *
*** * **** ** * * ** ***
* ** ** *** *** *** ** * * **** (t>=60)
* ** * ** ** * **** **** * * ** * *
*** ** * * * **** ***
*** * ** *** * ** * ** * ** * * * * * **** * ** *
* ** * * * *** * * * *** * ****
}
answered
Sep 29, 2016
by
chen
(
-102
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
float gra=0;
printf("Input your grade:\n");
scanf("%f",&gra);
if(gra>=90)
{
* * * ** ** ** * ** *** ****** * ** * ***** ** ** ** * * * *** ** * * ** * * ** ** *
}
else if(gra>=80)
{
*** * * ******** * **** * ** * * * * ** * ** * * ** **** * *** * ** ** * ** * * * * * * ** *** ***** * **** ** ** * * * ** ** **
* * ******* *** *** * ** * ** *** ** ** * ***** **** * ** *** ** * **** * ** * ** * * * * ** ***** * **** * * * **
***** ** ** * ** * ** ** * ** * *** *** * * ** * * * ** * * ** * * ** * * ** *** *** ** * **** ****** * * * * * * *** if(gra>=70)
** *** *** * **** *** *** ** ***** ***** *** ** * ** ** *** * *** * * * **** ** *** * * ***** * * ** ***
** ** * * * ** ***** * * * ** * * ** * * ***** * *** * *** * ***** * *** * *** * *** * * * * * ** * ** ** * * *** *** *** * * ** * ** * * *** ** * *****
* **** * ** ***** * * * ** * * *** * ** ******* **** * * ** ** * * ** * **** *** ***** ** * ** * * *** * * *** *** *** * ** ******* *
* * ** ** ** * * ****** **** * *** ** * ** ********* * ** *** * * * * * * * * * ******** * ** **** * * **** ** * * * * * * ** *** * ***** if(gra>=60)
* * * ** * *** **** * ***** *** *** **** * * ** * **** * **** * *** *** * * * ***** * **** ***** * * ** * * *** * ** * ****
* * * *** ** *** * * * * * **** ** * * *********** * * ** * * ** ***** * ** * ** * * * * *** * * * * * ** * *** *** ** ** ** * * * * **** ** * * * * ****** * * * *** * * * *
* ***** * * ** * * ** * * * **** *** ** * * * ** **** ***** ** *** ** ** * ** ** **** * ** * * * * ** * ** ******* * * * ** * **** ** **** **** ** ** *** ***
****** ** * * ** **** *** * * **** *** ** ** * * * **** ** *** * * * *** * ** * * * * * *** * ** ** **** ** * ** * *** **** * * * * **** * * * ** *** * * ** ** **
* **** ** * * ** * ***** ** * ** *** **** *** ** ***** ** * * ** * * ** * ** *** ** * * * * * ** ** * ** * * ** ** * *** * * * * ****** * ***** * ** * * * *
* * * * * ****** *** ** * ** * * * *** ** * **** **** **** * ** * *** * * * *** ** ** * * *** **** * *** ***** * * ** * *** **** * * ** * * * ** *** ** ** ** *** *** * * *** **** *** * *
* ******** ** *** *** * * * ** * * * * **** **** * *** *** * * * ** * * ****** * * * * * * * *** *** *** **** * * * * **** ** *** * ** * ******* * * ** *** ** ***** * * **** * * *** * * *
** ***** ** * ***** ** **** ***** * * ** * * ********* * * * * * ** *** ******* ***** ** * * **** * ** ** *** *** ** * ** ** ** * ** * * * ** ** * *** ***** ** * * * *** ** ** * **** * ** **
* * * ** ** * ** * * ** ****** ** * *** * * ** ***** * * ** * **** * ***** ** ** *** ** ** * * * *** * * * * ** ** * * ** ***** * * ** * * *** * ** * ** * ** ** ** ** *** 0;
}
answered
Sep 29, 2016
by
steven0221
(
-90
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
***** ** * * * * * ** * * * ****** num;
* * *** * * * ** *** * * *** *** * * ** ** put your number:");
** * * *** ** * * ** ** ** * **
* ** ***** *** * **** ** ** **** * **
* * ************ * * ** *** *** * * ** * * *** *** ** * * * * ** *** **
** * * * **** * ***** ** * **** * * * ** * * ********* ***** ***** * ** * * ** **** *
***** ******** ** ***** * * * * * if(num>=80)
* ** ** * ***** * * * *** * ** **** * *** * ** * **** ******** * * * ** ******
* * ** ** *** **** ** * *** * ** * ** * **** *** *** * *** * ** * * ** ** * * * * *
** **** * ***** * * * * ** ** * * ** ** *** ** *** *
** *** * ** * * * * * if(num>=70)
* *** * * ** ** * ** **** ** ***
* * * * * * *** * ** * * ** *** * * * *** *** * ** * * * **** * *** *** *
* ** ** * * * ** * * *** *** **** * * ** * ** ** * ** * * * ** ***** * *** * * *
* ** * * * * ** ** * * * ** * ** * * *** * *
** ** * **** * * **** ** ** * if(num>=60)
*** * * * ** *** *** *** * * **
** * **** ** *** ** * * **** *** * ** *** *** *** * ** * ** * * * ***** * ** *
*** *** * ** ** * **** *** ** * ***** ****** * * ** * *** *** **** * *** ** * * * *
* * **** ** * ** ** *** ***** *****
* **** * ** **** * * * * ** ** * * ** * * **** * * ** * ** ** ***** ** *
* *** ** * * ***** *** * * ** * * *** * *** ** * * * * ****** * * * ***
** ********* * ** ** *** * ** **** *** ****** ** * *
*** *** * *** ** * *** ** * * **** 0;
** * * ** * **** *** * * *** ***
answered
Sep 29, 2016
by
410525038
(
-64
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
** * * ** ** * ** * * * * * * * * score;
** *** ** **** * *** * *** * **** ** *** ** * ** input your score:");
* * * *** *** *** ** * * ** * **** * *** &score);
** ** ** ** * * * * ** * (score >= 90)
* * * * * * * **** ** * * *****
**** ** * ** * * * * *** * * * * * * ** * * **** * ** * ** * * *** * grade is A.");
* * * * * * ** * ** **** ** **
** * **** ** *** * * ** **** ** if (score >= 80)
* *** * *** *** * * * * ** * * ** ** * *
** * ** * * * * * * *** **** * ** * ***** * * ** **** * * ** *** *** * grade is B.");
* * ***** * * * ** * * *
* * * * *** *** * * * * ** * if (score >= 70)
* ** * * ** **** * * * ***
**** *** *** ***** * * * * * * ** ** ***** ****** ***** ***** ** * * ** grade is C.");
* **** * ** ***** * ** * *******
**** **** * ** * * * * * ** **** if (score >= 60)
* ** * ** * *** ** *** *** **
* *** **** * *** * * * * * ** ** * ** * **** ** * * * * ******* * * * ** grade is D.");
** * * * ***** * ** ** ********
* * *** ***** * * * * * ** ** * ***
****** * *** ** ******* *
** *** **** *** *** * * * **** *** * * * ******** * * * * * ** * grade is F.");
** * * *** * * *** * * * * ****
* ** ** * * *** *** **** ** * * * **** * * ** *
* ** ** * * ** *** * * ** * *** * 0;
}
answered
Sep 29, 2016
by
410314217
(
-214
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
** * *** * **** * *
int main()
{
**** ***** ** i=0;
* ** ** ***** ** * * ** your grade\n");
*** *** * * * *** * *** * * * *** ***
*** * * * **** ** ** * & i<=100)
* * * * * * **
*** ** * ******** * * * **** * **
* * ***** ** * ** * *
* * * ** * * **** * * if(i>=80 & i<90)
* * * ***** * *** * *
*** * *** ** ****** * ** * *****
** *** * *** **
* * ** ** if(i>=70 & i<80)
* * * * ** ** *** *
* ** ** * * ***** * ** * **
*** ** * ***** *
* * * **** * * *** if(i>=60 & i<70)
* * * ** ** * ** *
* * * ** * * ** * ** ** * *
*** ******** * **
* *** *** * if(i<60)
** * * *** * * ****** **
* ** * ** * *** ** * ** ** * **
* ** **** * ** ***
* * * *** * * * * * * * * **
answered
Sep 29, 2016
by
jack2234567
(
-190
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
* * * ***** * *
main()
{
* * * * * * *** i=0;
* * *** ** * **** ** ** * ** your grade\n");
* * * *** ** * * ** * * ********
* * *** ** * * & i<=100)
** **** ***** **
*** *** * ** **** ******* ***
** ** * *
* *** * ** ** ** if(i>=80 & i<90)
* * * ** * * ***
** * *** *** *** * * ***
* **** ** **
* * ** ** * ** * if(i>=70 & i<80)
*** *** * ** * **
* * ** ******** * ****** * **
* * ** ** **
******* ** * ** if(i>=60 & i<70)
* * *** *
** * ** ***** * * ** * **
****** * * ******
** * * *** *** ** if(i<60)
* * *** * * *
*** * *** ** *** * **
* * * * * ** *
* ** ** ** * * ** *** **
answered
Sep 29, 2016
by
jack2234567
(
-190
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include<stdio.h>
#include<stdlib.h>
int main()
{
** **** * *** * * *** ** * ** * grade=0;
***** ** *** * * *** ***** * **** **** * ** ***** ** * *
* *** * ** ** * ** ** * ** **** ** ******** ******
**** *** *** ** ** * * * * **** *** ** * ***
**** *** * * *** **** * * ******* * if(grade>=80)
* ** ** ** * * * * **** * *** ******* **
* *** * * ***** *** ** * if(grade>=70)
* *** *** * ** ** ** * * * ** *** ***** * ** * * *
* **** * * ***** *** * * * ** **** * * * if(grade>=60)
** * * ** *** * * ******* * * * * * ** * ** **
* ** * * *** *** ** * * **** if(grade<60)
*** ** *** * ** * * ** ** ** **** *** *** * ***** * ***
****** **** * *** ** * ** ***** * * * ** ** ("pause");
* *** * * ** * * * * ** * **** 0;
* *** * * ** * * *** * *** *
answered
Sep 29, 2016
by
謝秉弘
(
-264
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
« prev
1
...
3
4
5
6
7
8
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.69.17.10
©2016-2025
Related questions
0
like
0
dislike
40
answers
AD 20160929 作業 3
[Exercise]
Coding (C)
-
asked
Sep 29, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 11795 -
Available when:
Unlimited
-
Due to:
Unlimited
|
3k
views
0
like
0
dislike
159
answers
AD 20160929 作業 2
[Exercise]
Coding (C)
-
asked
Sep 29, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 11639 -
Available when:
Unlimited
-
Due to:
Unlimited
|
9.8k
views
0
like
0
dislike
26
answers
AD 20161103 作業1
[Exercise]
Coding (C)
-
asked
Nov 3, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 16957 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2k
views
0
like
0
dislike
37
answers
AD 20161020 作業 1
[Exercise]
Coding (C)
-
asked
Oct 20, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 14579 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.5k
views
0
like
0
dislike
67
answers
AD 20161013 作業 1
[Exercise]
Coding (C)
-
asked
Oct 13, 2016
in
作業
by
Shun-Po
(
18k
points)
ID: 13427 -
Available when:
Unlimited
-
Due to:
Unlimited
|
4.1k
views
12,783
questions
183,442
answers
172,219
comments
4,824
users