Description
We know that the copy transcripts is based on rank. 90~100 is A; 80~89 is b; 70~79 is C; 60~69 is D; 0~59 is E. Write a program to the input of a percentile score T, convert it to the corresponding level.
Input
There are multiple sets of input data, one for each group, and an integer.
Output
For each set of input data, output one line. If the input data is not in the 0~100 range, output one line: "Score is error!".
/* Copyright (c) 2014, Yantai University School of Computer * All rights reserved. * File name: Test.cpp * Chen Dani * Completion date: May 20, 2015 * Version number: v1.0 */#include <iostream>using namespace Std;int main () {in t N; while (Cin>>n) { if (n>100| | n<0) cout<< "score is error!" <<endl; else if (n>=90&&n<=100) cout<< "A" <<endl; else if (n>=80) cout<< "B" <<endl; else if (n>=70) cout<< "C" <<endl; else if (n>=60) cout<< "D" <<endl; else if (n>=0) cout<< "E" <<endl; } return 0;}
Experience: Do not rush to work after the results of Kung Fu to do enough to receive the results of the goods!! Keep trying!
c++--1913: Performance evaluation