This is what the output should look like:
"Please enter a date in the format mm dd yyyy: 12 99 2013
The day value is dubious. Please try again.
Please enter a date in the format mm dd...
Type: Posts; User: Knowledge_Feeds_The_Mind
This is what the output should look like:
"Please enter a date in the format mm dd yyyy: 12 99 2013
The day value is dubious. Please try again.
Please enter a date in the format mm dd...
No. It still does not convert the date that I input, sigh, this is really troublesome it still give me this
"Enter a date in the format mm dd yyyy: 12 11 1995, Enter another date? (yes/no) no"
...
I changed it to "(monthValue < 1 || monthValue > 12)" Sorry about that.
import java.util.Scanner;
public class W10Assign9 {
public static void main(String[] args) {
Scanner...
my bad, sorry. If this does not work, then I might have a bug in the program........
import java.util.Scanner;
public class W10Assign9 {
public static void main(String[] args) {
...
Here it is:
Thank you for your help! :)
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
int monthValue;
int dayValue;
I do not know where to start...
this is what it displays"
Enter a date in the format mm dd yyyy: 13 111 111
Enter a date in the format mm dd yyyy: 22 332 232
Enter a date in the format mm dd...
Yes. I would like the program to display: "The date you entered is November 20, 1981." When you enter: mm dd yyyy: 11 20 1981 (When a correct date is entered.) So basically it converts dates from...
Below is the code that I have now, there are some errors but I was wondering if you guys could offer me some guidance to finalize this program so that it is not as open ended. I do not really know...
Before I start explaining what my problem is I would like to apologize for the length of the code, it is my first time doing a GUI Program.
I have to create a GUI application where the user enters...
Thanks, I finally solved my problem. I really appreciate all the help you have given me! :D :D
If it had not been for your insight it probably would have taken me much longer, thank you so much...
So, I solved it. Now I only need help with calculating the major diagonal
public static double sumColumn(double[][] matrix, int column){
int row;
double sum = 0;
//below is...
this is the code where the summation is completed:
Thank you for your assistance
public static double sumColumn(double[][] matrix, int columnIndex){
double sum = 0;
//below...
Thank you very much for the fast response. :)
my output needs to look some thing like this. like this:
"Enter a 3-by-3 matrix row by row:
Row 1: 1 2 3
Row 2: 5 6 7
Row 3: 9 1 3
The sum...
I am having trouble fixing and figuring out how to change my code. My out put is very off, and I was wondering if anyone could give me insight to why, maybe even pose a solution,
"Enter a 3-by-3...
Thank you so much dicdic!:) I did not realize such a simplistic mistake. :eek:
I truly appreciate your assistance!
Thank you for helping me understand how to understand the foreign language of...
So I figured it all out, but there is a small hitch. The program prompts for 11 values, when it is supposed to prompt for only 10.......
How do I fix this?
This is how my code looks right...
So then how would i write it correctly? Thank you so much!!!!!
Thank you for your assistance.
Drgy55, thanks so much B), this is so rad. Cannot believe that I did not notice this. I go by the name Vex, because it is shorter and easier :D
My answer finally reverses!! There is a 0 though,...
It was my mistake for not specifying, I get the results (above) for every number I put in. It is as if those values are set in the array. I would like to know how to change it so, that when I input...
I am having issues with my output and cannot figure out what is causing it. I have been struggling for 2 days now.. Any help appreciated
Also if I can see how to calculate the minimum and the...
I finalized my code, but I cannot run it, the program says that there is no main class?
"public static void main(int radius, int x, int y) {" I thought that this was my main class....
Do you know...
So I sat down and reran the entire thing.
I thought I had it but nope, did not happen :confused:
public class NewCircle {
public static void main(int radius, int x, int y) {
...
So I reworked the code and now I think I only have to find a way to integrate the second code into the first code
//First Code
import java.awt.Point;
I do not think I need to know exactly, put pretty close to it.
Yes. "A toString method that prints out the location of the circle (the x, y coordinates of
the Point) and the radius."
...
Prompt: Write a class encapsulating the concept of a circle, assuming a circle has the following attributes: a Point representing the center of the circle, and the radius of the circle, and integer....