English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - March 2007

[Selected]: All categories Computers & Internet Programming & Design

i have an assignment in my computer science class. i have to write a program that takes in the expiration date of a food product, the current date, and tells whether or not the product is expired or not.

i have to use 3 bool functions ( 'isvalid' returns if a date is valid, has parameters that represent one date) ( 'thesame' tells if the two dates are the same, has parameters that represent two dates) ( 'earlier' returns true if the first date is earlier than the second date and false otherwise, has parameters that represent two dates) and a void function ( 'output_date' which takes parameters that represent one date and outputs it to the screen)
here is the output:
Enter expiration date in the form mm/dd/yyyy: 2/1/2017
Enter today's date in the form mm/dd/yyyy: 2/15/2013
The expiration date you entered is 2/01/2017
The current date you entered is 2/15/2013
The expiration date is later than today, this food is ok!

i just need help writing a bool function. idk how to make one

2007-03-19 10:17:24 · 4 answers · asked by 63godtoh 3

i use netbeans, and it creates the code for the buttons and text fields automatically, now can i make a method to read all the contents of these fields by a loop
like this (((for example)))

for (i=1;i<10;i++)
str+=(jTextField+i).getText()

is there something near to this?????
cuz i usually write like this
jTextField1.getText();
jTextField2.getText();
jTextField3.getText();
...

2007-03-19 10:17:22 · 1 answers · asked by Medo 3

how can i search using a query to find the most frequent result. i.e. search for the word that appears the most in a table.

i hope that makes sense.

2007-03-19 10:14:04 · 2 answers · asked by Anonymous

2007-03-19 10:07:47 · 3 answers · asked by confused gardener 2

for instance weather it be HTML DHTML java etc, is there a way to click for example my "Contact.html" and for the whole page to stay the same but in the scroll box the page would open up inside it.

2007-03-19 10:05:58 · 3 answers · asked by damongreen88 1

I recently redesigned this website, www.modernYogini.com using Frontpage. The original design was also in Frontpage and MAC users reported no issues viewing the old site. The index page is supposed to show an avatar and a link to enter the rest of the site. What could be the problem? What other information do you need from me? Thanks.

2007-03-19 10:00:19 · 2 answers · asked by honeybeewellness 2

Can anyone figure out why my formatting on www.pamandjosh.com doesn't align properly on older browsers? It works fine with ie7 and firefox but anyone in an older version says that the content doesn't align.

2007-03-19 09:59:19 · 2 answers · asked by jrgreenfield1 2

2007-03-19 09:45:23 · 4 answers · asked by lord_andys_new_id 1

I'm in a community college now and I plan on graduating from it with some programming knowledge, do I stop and try to find a programming job or get my computer science degree? I want to be a game programmer or maybe a software engineer, I want to have enough cash to be very comfortable. Any help???

2007-03-19 09:38:39 · 7 answers · asked by Kris M 2

does anyone know a good site,so i can learn to make a website banner in photoshop 7.hopefully it will include pictures,step by step

thanks in advance

2007-03-19 09:36:03 · 2 answers · asked by Jo 5

Pascal, C and Ada programers have records and structures, what do Java programmers use instead. Also, do you have to put a class into a package in order to use it or import it into another file/program/application? Examples? I am attempting to learn Java on my own until I get a class this summer. Thanks in advance. FWIW if you answer my questions, you will be the first to do so, that includes www.sun.com and the java website too.

2007-03-19 09:32:24 · 4 answers · asked by rhohltjr 1

2007-03-19 09:28:06 · 4 answers · asked by mazeedat2002 1

For example, If I want the clickable link "News" to take me to CNN, How would I do that?

2007-03-19 09:14:44 · 6 answers · asked by yoshi2919 2

Can I sort an address like "555 Smith St" written in all in one cell by street and then by address number? I know i can do it in separate cells and then sort by priority, but then i have trouble with my mail merge into Word.

2007-03-19 08:58:36 · 5 answers · asked by pelagiamusic 2

I mean, is it possible to perform all the tasks that we usually do with a mouse (scrolling, highlightning, clicking on certain areas of the screen, etc.) by using only the keyboard?

2007-03-19 08:43:37 · 25 answers · asked by dolempap 2

how do i find out the particular port number i wud use when working in networking in Java language??

2007-03-19 08:42:17 · 1 answers · asked by Anonymous

C# and Java do have similar programming style, and i think the said style is the best. But Java is so slow. Other languages (C, C++, Assembly) seem hard to understand. Now I wonder about your suggestions.

2007-03-19 08:31:28 · 8 answers · asked by ŞΘFΙΛ 3

I want just a page that contains contact info and says something predictable like 'under construction' ! I cant afford to employ someone so want to do it myself but dont want to spend the next 6 years of my life doing so. Really appreciate any help.

2007-03-19 08:29:43 · 4 answers · asked by kaoma001 1

I have to add a new field that counts how many people I have in a particular record. It counts perfectly, but only after prompting me for a parameter value. So I type in the value and no matter what it is, it is correct. However, the title of the field does not show up. How do I make the title of the field show up and how do I make it stop asking me for a parameter value? Thanks! :-)

2007-03-19 08:15:01 · 1 answers · asked by Ashley 2

2007-03-19 07:59:49 · 10 answers · asked by Lenin Cat 2

can any one plz tell me how to change font color and format on adobe reader? is it possible anyway? thanks

2007-03-19 07:53:12 · 2 answers · asked by zozza 3

the program should be in javascript

2007-03-19 07:50:59 · 1 answers · asked by maate r 1

Was it a fad? Can I still be employed as a Java programmer say 5 years from now?

2007-03-19 07:48:36 · 3 answers · asked by orser10 1

i need three types of Computer Software used in the Accounts office. What it is called? - What it can do?
When it was developed? - Whether expensive or not. thanks

2007-03-19 07:28:57 · 1 answers · asked by Anonymous

Hi,

Is there any based web browser that build completely with java & is actively developed & open-sourced (so that i can look into the code) ?

2007-03-19 07:23:25 · 2 answers · asked by Dhanasekaran K 3

Node 1 -> Node2 -> Node3 -> Node4 -> Node5
<- <- <- <-

A ^ is pointing to Node1,B ^ to Node2, and C ^ to Node5.

For example the info value of node 1, referenced from reference A would be A.getInfo().

a. The info value of node 1, referenced from reference C?

b The link value of node 2, referenced from reference A?

C The back value of node 1, referenced from reference A?

Note: Node1 circles back to Node 5 and vs versa.

2007-03-19 07:22:08 · 2 answers · asked by Anonymous

You can also suggest me some ideas on doing projects ... I mean, something new, something innovative.

2007-03-19 07:08:24 · 3 answers · asked by Innocence Redefined 5

fedest.com, questions and answers