Write a program that translates a letter grade into a number grade. Letter grades areA, B, C, D, and F, possibly followed by + or –. Their numeric values are 4, 3, 2, 1, and0. There is no F+ or F–. A + increases the numeric value by 0.3, a – decreases it by 0.3.However, an A+ has value 4.0.Enter a letter grade: B-The numeric value is 2.7.
java语言初学者求助设置环境变量中遇到的难题。
方法一:依次点击:“我的电脑”-(右键)“属性”-“高级”-“环境变量”,弹出Windows的“环境变量”配置卡。在“系统变量”栏下执行三项操作:①新建“Classpath”(如果已有,则直接编辑),设置其值为 .;JDK所在的绝对路径值\\lib (例如 .;D:\\Program Files\\Java\\jdk1.5.0_04)(若值中原来有...
求助一道C语言设计题目
include <stdio.h>int main(){ int year,n=0; for( year=1;year<=3000;year++ ) { if ( (year%4==0 && year%100!=0) || year%400==0 ) n++; } printf("n=%d\\n", n ); return 0;}