Write A Program That Manages Personal Time Table

Apr 16, 2014

i want to write a program that manages my personal time table.

View Replies


ADVERTISEMENT

Write A Java Program To Read Time Intervals

Feb 23, 2015

Write a java program to read the time intervals (HH:MM) and to compare system time if the system time between your time intervals print correct time and exit else try again to repeat the same thing. By using StringToknizer class.

View Replies View Related

Write A Program To Print Out Fahrenheit-Celsius Conversion Table?

Oct 14, 2014

This is my program

import java.util.Scanner;
import java.text.DecimalFormat;
public class Lab6 {
public static void main(String[] args) {
int F;
double C = 0;

[Code] ......

output

0 1 2 3 4 5 6 7 8 9
0 degree Fahrenheit equal to :-00.00 degree Celsius
1 degree Fahrenheit equal to :-00.00 degree Celsius
2 degree Fahrenheit equal to :-00.00 degree Celsius
3 degree Fahrenheit equal to :-00.00 degree Celsius
4 degree Fahrenheit equal to :-00.00 degree Celsius
5 degree Fahrenheit equal to :-00.00 degree Celsius
6 degree Fahrenheit equal to :-00.00 degree Celsius
7 degree Fahrenheit equal to :-00.00 degree Celsius
8 degree Fahrenheit equal to :-00.00 degree Celsius
9 degree Fahrenheit equal to :-00.00 degree Celsius

I don't know why the program is not calculating the C degree ?

View Replies View Related

Display School Time Table On Screen

Feb 14, 2014

How to solve the following task:

Design a programto display the followingSchool Time Table on screen.

Capture.PNG

Yourprogram should use thefollowing named constants tocontrol theformat of the calendar display:

/*Thenumberofdaysinthemonth*/
privatestaticfinalintDAYS_IN_MONTH=31;
/*Thedayoftheweekonwhichthemonthstarts*/
/*(Monday=0,Tuesday=1,andsoon)*/
privatestaticfinalintDAY_WEEK_STARTS=0;
/*Thewidthinpixelsofadayonthecalendar*/
privatestaticfinalintDAY_WIDTH=40;
/*Theheightinpixelsofadayonthecalendar*/
privatestaticfinalintDAY_HEIGHT=30;

View Replies View Related

HSQLDB - How To Write Update SQL Statement With More Than One Table

Jul 16, 2014

I have a HSQLDB-database and the update syntax is as follows:

Java Code:

UPDATE table SET column = Expression [, ...] [WHERE Expression]; mh_sh_highlight_all('java');

Now I would like to update a column, with an inner join. Because inner join is not supported in this update-syntax I put the relationship in the where clause:

Java Code:

update table1 set rang=null where table1.column1 = table2.column1; mh_sh_highlight_all('java');

But HSQLDB is always saying to me that there is an syntax error: user lacks privilege or object not found: table2.column1

But I am 100% sure, that there is a table2 with the column1. I have no mistake in writing!

View Replies View Related

Write Output In Columns To HTML Table?

Nov 24, 2014

I've written two programs. My first program compares the difference of two text files and prints the differences in an output. My second program creates a simple Html table. I would like to write my output to this table. How would I go about doing this in java?

View Replies View Related

JSF :: How To Get A List Of Personal X509 Certificates

Sep 9, 2014

I'm developing a JSF application with Eclipse, JSF 2, Tomcat 7 and primefaces 5. I'm quite happy with my progression, but I'm stopped now. I've achieved to establish a SSL connection (https) with openssl.

I'd like my application to press a button in the login form, and show the list of personal X509 certificates which are in the browser's store. Many webs implement this functionality, so I realize that this is possible, and without using applets. Is this so hard? I'm looking for examples but I can't find anything.

View Replies View Related

Application That Prompts User To Enter Personal Details

Feb 18, 2014

Create a Java application that prompts the user to enter their personal details: First name, last name, gender, address, suburb, postcode, and phone number. Then the program displays all of your personal details to the screen as illustrated. Name the file PersonDetails.jav

package exe
import java.util.*;
public class Review2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Enter your full name: ");
String name = scanner.next();

[Code]...

If you cant tell straight away how i have stuffed up, what is happening is this;

When i am promoted to enter my name, 'John Smith'. The word 'John' would be stored in the name variable, while 'Smith' is stored under gender, so the next prompt is then 'Whats your address?'

So its only assigning one word per variable, now as far i understand, a string should not work that way. So where is my mistake?

View Replies View Related

Calculate Fuel Economy Of Personal Car In Terms Of Gallons Per Mile And Total Cost For One Fill-up

Apr 4, 2015

public class CarV5
{
// private instance variables
String Model1;
int endMiles1, startMiles1;
double gallonsUsed1, pricePerGallon1;
 
[Code] .....

When I try to compile the program, its telling me that it cannot find the Dist variable in the main method for calcMPG and calcGPM. I'm not sure if the methods are right for the calcGPM or calcMPG.

View Replies View Related

Program That Will Allow Programs Only At Certain Time

Sep 25, 2014

So I am making a program that will allow programs only at a certain time and i'm not sure how I would set the time for the program.

View Replies View Related

Java Football Table Program

Nov 9, 2014

I have been trying to make a football league table in java based on text input and output. I want to to know if i have done task 1 right if not could you

Task 1. Design and implement classes SportsClub (abstract class), FootballClub.Classes should include appropriate methods and hold information about name of the club,its location and various statistics about the club. FootballClub should include statistics such as how many wins, draws and defeats an instance of it has achieved in the season, the number of goals received and scored. The number of points that a club currently has, and number of matches played.

Task 2. Implement a class PremierLeagueManager which extends interface LeagueManager. PremierLeagueManager class maintains a number of football clubs which play in the premier league. The class should create a menu based on text input and give the user the choice of:

• Create a new football club and add it in the premier league.
• Delete (relegate) an existing football club from the premier league.
• Display the various statistics for a selected club.
• Display the Premier League Table

Here is my code for Task 1:

public abstract class SportsClub {
int position;
String name;
int points;
int wins;
int defeats;
int draws;
int totalMatches;

[code]....

View Replies View Related

Printing Amortization Table For Program

Jul 15, 2014

I am still having trouble with printing an amortization table for my program. This is the example the professor gave us and our program has to print exactly like this:

Please enter the amount of the loan (a number less than $1,000,000.00) 1000.00
Please enter the annual interest rate (between 2.0 and 15.0 inclusive) 10
Please enter the term of the loan (a number of years between 1 and 30 inclusive) 1
Your monthly payment is 87.92
| INTEREST | PRINCIPAL
MONTH 1 : 8.33 79.58
MONTH 2 : 7.67 80.25

[code]....

So far I have it so it works up to the table. How to get it to loop so it will print each month with the principal and interest. This is the part im having trouble with:

double principal = amount;
double principalPaid;
double interest;
double totalInterest;
double balance = amount;

[code]....

View Replies View Related

Time Unit Conversion Program

Feb 8, 2015

So, here is the question I have been working on: Write a java class named Time that prompts the user to input the elapsed time for an event in seconds. The program then outputs the elapsed time in hours, minutes, and seconds. (For example the elapsed time is 9630 seconds, and then the output is 2:40:30 ).Hint: an hour has 3600 seconds and a minute has 60 seconds. Use Scanner class for reading the input.

Here is my code:

import java.util.Scanner;
public class Time {
public static void main(String[] args) {
Scanner scan= new Scanner(System.in);
System.out.println("Enter the elapsed time in seconds:");
int totalseconds= scan.nextInt();

[Code] .....

Now, I know I am supposed to use the remainder operator to figure out the time in minutes and seconds, but the hours has be a little confused. Right now this code compiles but gives me an exception.

View Replies View Related

Create Program That Prints Time Between 00:00 (0:00 Am) And 23:45 (11:45 Pm)

Feb 8, 2014

I was told to create a program that prints the time between 00:00 (0:00 a.m.) and 23:45 (11:45 p.m.) in the 24-hour clock and 12-hour clock format like this:

24-hour Clock 12-hour Clock
-----------------------------
00:00 0:00 a.m.
00:15 0:15 a.m.
00:30 0:30 a.m.
00:45 0:45 a.m.
01:00 1:00 a.m.
01:15 1:15 a.m.
01:30 1:30 a.m.
01:45 1:45 a.m.
02:00 2:00 a.m.

ect...

but cant seem to create the program and my program doesnt seem to run.

View Replies View Related

How To Write A Program Using TextEdit

Jul 21, 2014

How do i write a program using textEdit? I can't even get the examples to open?

View Replies View Related

Program That Changes The Value Of A Variable When A Predefined Time Arrives

Mar 19, 2014

Is it possible to write a program that changes the value of a certain variable when a certain predefined time arrives, without running the same loop over and over again (and stucking the computer)?

View Replies View Related

Formatting Table For A Single Error Correction Program

Apr 25, 2014

So I want to format my output in a table much like the one in the book. I have an SECTable class and it displays the table one row at a time. 4 of the rows are in the 2D array in the SECTable class. The decimal position values are just displayed via a loop going from 12 to 1 (8 bits), 21 to 1 (16 bits), and 38 to 1 (32 bits) and the binary position values have their own class which contains an ArrayList of the binary position values as strings. Here's an example of how I want the table to be formatted (this is after an error has been generated so all the rows will be displayed):

Binary Position: 1100 1011 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001
Decimal Position: 12 11 10 9 8 7 6 5 4 3 2 1
Stored As: 0 0 1 1 1 0 0 1
Check Bits: 0 1 1 1
Fetched As: 0 0 1 0 1 0 0 1
Error Check Bits: 1 1 1 0

And I need it to format similarly for 16 bits and 32 bits as well. Here's the display function for the list of binary position numbers:

public void displayList() {
System.out.print("Binary Positions: ");
for (int i = (posNums.size() - 1); i >= 0; i--) {
System.out.print(posNums.get(i) + " ");
}
}

Here are the display functions for the rows (separated them so that there wasn't so much code in one function):

public void displayTable() {
// Print the Binary Position Values
displayBinPositions();
// Print decimal bit positions
displayDecPositions();

[Code] ....

The print3rdRow and print4thRow are booleans to determine whether an error has been generated yet (user chooses from menu to create an error and the program picks a random bit to change and the erroneous data is put in the 3rd row and it's check bits are put in the 4th row). I tried doing spaces but it just wouldn't come out like I wanted.

View Replies View Related

Getting Program To Write To Output File?

Mar 19, 2014

My program successfully reads a file, reports back what it finds and creates an output file. However, I cannot get it to write to the output file, it is always blank!

Here's my code:

import java.util.Scanner;
import java.io.*;
public class Ex19
{
public static void main (String [] args)
{
//Variables

[code]....

View Replies View Related

Write A Program That Find The Sum Of Two Numbers 62 And 99?

Jan 23, 2015

I have to write a program that find the sum of two numbers 62 and 99 and stores them in a variable named total. However, I have one error that I just can't get rid of and can't tell what it is. I'm using jGrasp and here's what it says:

Programming Challenge #5.java:14: error: class SumofTwoNumbs is public, should be declared in a file named SumofTwoNumbs.java
public class SumofTwoNumbs {
^
1 error
  ----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.

and here: is my code:

import java.util.Scanner; 
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
 /**
// This program has variable of several of the integer types.
public class SumofTwoNumbs {
public static void main(String[] args) {

[code]....

View Replies View Related

Write A Program Called GeometricMean

Nov 24, 2014

Write a program called GeometricMean that prompts the user to

1.Enter the number of values (total number of instances) that should be processed

2.A set of values to be processed (in a while loop)and then calculate the geometric mean of the values entered. You should use a while loop to perform the multiplication part of the calculating the geometric mean. The program should output the initial data and the labeled geometric mean. Consider printf, and DecimalFormat.

My Program:

import java.util.Scanner;
public class GeometricMean{
public static void main(String[] args) {
Scanner keyboard= new Scanner(System.in);

[code]...

View Replies View Related

Write A Java Program That Uses A While Loop

Apr 9, 2014

Write a java program that uses a While loop and persistent output to count down from 33 to 0 by threes, and put each value on a separate line, also do this in for loop.

View Replies View Related

How To Write Program Without Using Control Structures

Feb 24, 2015

How to Write Program with out using control structures

IMG_4216.JPG

View Replies View Related

Write A Program That Searches Through Files?

Dec 10, 2014

I'm trying to use graphics for my programs and here I'm trying to write a program that searches through files for text received from a JTextField. However, it does not seem to be working as my message is not displayed when text is found...

I used applet. Here are the functions:
 
JTextField jtf;
JFrame jf;
public void init()

[Code].....

View Replies View Related

GUI Program - Read And Write To File

Oct 17, 2014

I'm rather new to programming and I'm trying to make a gui program that will allow the user to create text files. They will be prompted to enter what they'd like to save their file as and then they will be allowed to input text to that file . They will also be allowed to open their files to modify or view its contents. So to start things off, I'm making a prototype if you will.. I've been able to save to a file the problem occurs when I try to read/display it.

Main Class:

public class MainActivity {
public static void main(String[] args) {
// Access to other classes
WriteFile writer = new WriteFile();
ReadFile reader = new ReadFile();

[Code] ....

View Replies View Related

How To Write A Program Which Compensate Average

Jan 12, 2015

I have a question. How to write a progamme which compensates an average if it is less than a 10/20. I use eclipse and database HSQLDB. I have a table with notes. After the compensates, I must change the note in my database.

I have three notes

12, 11, 5

The average is 12+11+5/3=9,33

I take the lowest note: 5

12+11+x/3 = 10

12+11+x/3 = 30/3

x=30-23

x=7

The new average is 12+11+7/3=10

View Replies View Related

Inventory Form Program - User Update Data In The Table

Apr 30, 2015

I'm getting ready to code a program that takes record of items loaned and return in a table. I want more than one user to access the program to be able to update the data in the table. For instance, if one user added 5 new items to the table, all other users would be able open the program to see a modified table with 5 new items. Was looking for some advice and was wondering if implementing a database would work best.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved