User Profile
Collapse
-
Nearly finished...can't figure out how to update a label
I'm working on a program that allows the user to in put a task, click add task button, and then the task displays in a list box and disappears from the text box. I have completed all of this...however, the next part I can't figure out how to do. Each time a new task is added to the list box my program needs to update the count which is located within another label called outputLabel. I have tried a few different things but can't get this to update.... -
Thanks for the input. And yes, I do have to convert from fahrenheit to celsius also but I didn't include that code here because I didn't want to have my entire program on here....Thanks again for the help.... -
Almost there...need help displaying result in output Label
I had to create a program that allows the user to input a temp and then click on either the convert to fahrenheit or convert to celsius button and then display that result within the textbox that says "user entered amount in F or C is equal to answer degrees F or C." I have the code written for the convert to Fahrenheit but do not understand how to get the converted temp to display in the text box along with the above desired text. Below... -
Hey...thanks alot! I can't believe I forgot about Step. I appreciate it....Leave a comment:
-
Question about numeric up/down control
Hello...
I have designed a program to allow the user to input a future value dollar amount, interest rate, and number of years and click calculate in order to display how much money needs to be deposited at the 5, 10, 15, 20, 25, and 30 year marks within a text box. My program works and gives me the correct output with one exception. Every time I try it, it will give me the ouput for every year from 5 through 30 vice just every five... -
lifeshortlivitup started a topic Almost got it, need just a little help with this java grader program to output correcin JavaAlmost got it, need just a little help with this java grader program to output correc
This program is supposed to calculate the number of grades entered and also how many a's, b's, c's, d's, and f's are entered. I have the number of grades part right but can't figure out how to fix my code to make it output the correct number of each letter grade. Can someone please look at my code and tell me where I messed up? I appreciate all help I can get. Thanks!
Here is my code:
import java.util.*;
... -
lifeshortlivitup replied to Need a little help getting started. Trying to figure out how to convert temps...in JavaI've never used JOptionPane.sho wInputDialog or any of the parse at all...my book has all of that listed in the "optional" section of each chapter. I think i'm way in over my head with this java stuff but thank you for this. I'll try and feel my way around in the dark and see if I can't come up with something resembling a program. If you saw the code I had been working on for this I bet you would laugh :(...Leave a comment:
-
lifeshortlivitup started a topic Need a little help getting started. Trying to figure out how to convert temps...in JavaNeed a little help getting started. Trying to figure out how to convert temps...
I am a java beginner and am trying to tackle a temperature conversion problem but I don't exactly know how to begin. The problem asks that I write a program that allows the user to conver either from degrees Celsius to Fahrenheit or from degrees Fahrenheit to Celsius. I have the following formulas to accomplish this already:
degreesC = 5(degreesF - 32)/9
degreesF = (9(degreesC)/5)+32
Then it asks to prompt the use to... -
lifeshortlivitup started a topic How do you declare a variable that has letters and numbers? ex: 98F for 98 fahrenheitin JavaHow do you declare a variable that has letters and numbers? ex: 98F for 98 fahrenheit
I'm trying to write a program that will allow me to enter a number followed by a c or C and convert it to fahrenheit or vice versa but don't know how to do my variables. I have the following for the actual converting part:
degreesC = 5(degreesF - 32)/9
degreesF = (9(degreesC)/5) + 32
Now i'm just trying to figure out how to prompt the user to enter a number followed by a c, C, f, or F but can't figure out the variable... -
How to get one digit per line...please help, beginner :(
Hello all....I am brand new to this whole Java environment and have become stumped with an early homework assignment. It sounds simple enough, but after hours and hours of working on it I can't get it to give me the correct output. The problem calls for me to enter a four digit number and the number then needs to be output one digit per line like so:
1
9
9
1
Anyone have any ideas? Thanks! -
I finally figured it out! Thanks for all of the help on this one.Leave a comment:
-
Ok, I moved the //get score to search for piece of code to the outside of the main while loop and that did make the program stop looping. However, I am still unsure what to do in order to return the appropriate letter grade for whatever score I input. I still receive an F each time. Here is my updated code.
//Ch11AppE11.cpp – displays a grade based on the total number of points
//entered by Ms. Jenkins
//Created/revised...Leave a comment:
-
I have tried my previous code and no matter what number I enter I get grade F over and over and over, I have to hit control C to stop the program. You said that != is wrong, so I changed that >= and <= and the program did the same thing as with the !=. I'm lost!...Leave a comment:
-
This is the code that I came up with and it is horrible! I don't know how to make it work to where the user can enter a number score and then the appropriate grade for that number range comes out. Any pointers with what is wrong with my code? I know there are a ton of errors. Any help is greatly appreciated!
displays a grade based on the total number of points
//entered by Ms. Jenkins
//Created/revised by Casey Dockins...Leave a comment:
-
Thank you for the tip, but the text specifically tells me that I must use only two one dimensional parallel arrays. Using an array of structures is not allowed and my hands are tied due to the wording of the question. I am not sure how I am going to build this. Is there anyway to store a range of data in each element of an array? LIke for example, could I have the following...
scores[5] = {0-299, 300-349, 350-399, 400-449, 450-500}
...Leave a comment:
-
Contstructing Parallel Arrays question.
I am trying to construct two, one-dimensional parallel arrays that will give me a letter grade for whatever score I enter. The two arrays I need are minimum score and grade. I don't understand how to build the score array. The scores are as follows: 0 - 299 should result in a F
300 - 349 should result in a D
350 - 399 should result in a C
400 - 449 should result...
No activity results to display
Show More
Leave a comment: