The actors are programmed in standard textual Java code, providing a combination of programming experience in a traditional text-based language with visual execution. Echo each letter grade, credit pair. You should use string for grade to declare your variable because users need to enter grade in letter such as A, B+, C-, etc. That would be my first guess. This app is written in Java and runs on almost any platform. I decided to use only switch statement and make it as simple as possible.
For, every code we added three to four different types of outputs so that you will get an idea. Even when the user enters a wrong number the switch ignores the default and repeats what is in the do. Post your questions here so that other people can learn as well. All the plugins and necessary java development tools — all are integrated in this prepackaged software. The point is to enter as many classes and students as user wants. Could someone explain me what have i missed and did wrong with any ideas of what to add or remove.
Please feel free to contribute! As far as a getfile method i'm really not sure how to do that because my professor hasn't tought it and my book doesn't mention it. I keep getting credit points 0 at the end and also text format is not good too. See lines 195-220 in the code. I couldn't really see if there was a way to incorporate a switch statement. I suspect you want some way of getting the output from your getFileName method into your getCoursePoints one; you just haven't done it right yet. I'm at a loss on what to do! But for some reason when the user enters a correct number 1,2,3,4 the loop runs again.
You can print everything on a single line or print per line etc. The program will allow the user to enter the letter grade for each of their courses. Don't forget the and the as they are extremely valuable resources. Meaning it will go to default which is zero and leads to totalpts ending up being zero because anything times zero is zero. Here is my code so far: import java. Each of the non-name items should be stored in separate collections.
This may make creating and accessing these components easier. UnsupportedClassVersionerror: start : Unsupported major. This type of program comes in handy for photographers, editors, web masters and network administrators, and other users who frequently need to organize long lists of files. Using standard values, using command line arguments, inputs through scanner class and user-defined method. It provides option from full-scale folder conversion to high-quality code snippet conversions. Winston Ok thanks Winston that helped with the error. The free edition supports conversions up to 1000 lines and code snippet conversions up to 100 lines at a time.
As far as a getfile method i'm really not sure how to do that because my professor hasn't tought it and my book doesn't mention it. May 26, 2014 I have a code for a Hub and I wanted to modify it to a Switch. Hope that helped and back to me if my suggestions helps you. Step 3: Declare and initialize your variables. Double check for logic error because sometimes your result logically is wrong. I keep getting credit points 0 at the end and also text format is not good too.
Also marks your syntax errors. I also analysis some issues with your code that uinitialized variables, there a scanf is outside the while loop, the basic issue is that there are no decremented the count. Your grade point average may range from 0. Use a method that takes a letter grade and a number of credits as parameters, calculates and returns the points for the course. Then you'd do the math in the student class and return that value in some method.
This may be able to be fixed with the getfile solution, any help on how to do that would be wonderful. The point is to enter as many classes and students as user wants. The interface works great, I can click a button to add an additional course. The brackets tell the computer that the code belongs to the method. Please tell me what I need to do next.
Apr 10, 2015 this is what code i have so far i want to try and get the computer to output a String type result rather than a number and i wonder if there is a way to output the score after the user is done with the game. Check more programs for beginners and. You can also convert entire folders of Java code files to C++ files. The algorithms can either be applied directly to a dataset or called from your own Java code. The format of the data is: one course per line, with a letter grade string and number of credits integer for each course, as shown in the example above.