Question : I'm trying to write a program that will convert a numeric grade into a letter grade (90 = A or 50 = F) I have to use a switch statement. It works as long as I put a 9 or 8 or 7 or 6.. If I put a 90 or 80 or 70 or 60 it will return F. How do I fix this? Thanks
public class ChristianNathanProg4_5
public static void main(String args)
Scanner stdIn = new Scanner(System.in); // used to collect input
double numericGrade; //User enters students numeric grade ..
Answer : Problem:
You are not considering tens place of numericGrade
It should be like
This one sounds more apporpiate
roundedGrade = (int)Math.floor((numericGrade)/10);
which will return nearest floor value and is what you need to have under cases.
Hope this will solve your issues
Question : If the source is Net, its better.
Answer : www.sparknotes.com is a good web site for everything about school or daily life or ...try it
Question : I am registering for my classes for spring 10, and am thinking about taking physics. I noticed that there are two that I can choose from, general college physics and university physics.
General college physics:
Teaches fundamental principles of physics. Covers mechanics, thermodynamics, wave phenomena, electricity and magnetism, and selected topics in modem physics.
Teaches principles of classical and modern physics. Includes mechanics, wave phenomena, hea..
Answer : Typically when there are two different intro physics classes, one is algebra-based and one is calculus-based. Algebra-based would be for people going into the 'soft' sciences (like those doing premed) and calculus-based is for those going on in physics, engineering, computer science, geology, probably architecture, etc.