Major help needed with date problem
hi everyone, I have been working on this problem for so long, my brain is completely fried, really. the part of the project I have listed is just one of larger program that I have all figured out; this is the last part and I am just struggling to come up with a start. I think i need to use a for loop, but not quite sure.
HERE IS THE PROBLEM:
(2) Prompt the user for a premium amount (in dollars and cents, but assume the user does not enter the $ sign), a start date and an end date for a policy term, and an effective date for a policy cancellation. Dates should be entered with three separate prompts for year, month, and day, in that order. Month will be a number between 1 and 12, and year will have 4 digits. Assume any pair of dates is possible, between January 1, 1900 and December 31, 2200. You may assume that the user always enters a valid date. You may also assume that the user enters a start date that is before the end date. Assume the cancellation effective date is between the start and end dates. You may also assume that the premium amount the user enters is a valid number.
(5) Using the start date, end date, premium and a desired refund amount (entered by the user), calculate the cancellation effective date required to produce an amount equal to or slightly larger than the desired refund amount
if anyone is looking for some major duke stars, please post here . . .
(5) Using the start date, end date, premium and a
desired refund amount (entered by the user),
calculate the cancellation effective date requiredto
produce an amount equal to or slightly larger than
the desired refund amountCan you describe in precise detail--clear enough so
that somebody who had no idea about this problem or
the process could do it--the steps you'd take to do
this without regard to Java?If I understand correctly, you need to find out what percentage of their policy they want to use (the refund they want back tells you what percentage of the premium they want back, so the rest is what they want to use). Then use that percentage to calculate the number of days they would have to use the policy to get that refund (you already know the total days, so total days * percentage = days until refund). Then you just need to find out what day is that many days after the start day. that would be when they would cancel. Hopefully that makes sense. I am still trying to have it make sense for me. I can't figure out how to code this.
Similar Messages
-
Help needed with data security
I need to return my Thinkpad for service but I am concerned with security. For instance, my facebook account as well as other accounts log on automatically because the passwords are automatically remembered. How do I keep my confidential information safe while the laptop is in the technicians hands?
BTW, one of the problems that it has is that I cannot backup successfully with the lenovo application... I managed to get a backup completed with the windows backup program, but I'm not sure of it's integrity.
Please help me with this, Thanks!Hi,
If I understand you correctly, you suspect software problems.
The first thing the techs will do (probably) is re-image your HDD. I hope you have you important data backed up somewhere - especially if you don't trust the Windows backup.
For that matter, if you do have software issues, restoring a full backup will also restore the problem.
You've probably already considered this, but just in case...
Z.
The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc. The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
English Community Deutsche Community Comunidad en Español Русскоязычное Сообщество -
Major Help Need With My I Pod Video
iF ANYONE CAN TELL ME HW TO FIX THESE PORBLEMS ON MY I POD ARE THE SMARTEST ALIVE FIRST MY SCREEN IS BROKE THATS OK MY I POD WAS WORKING BEFORE THIS HAPPEN BUT NOW IT CaNT EVEN STAY ON FOR NO LONGER THEN 10 SECONDS IT LOADS UP LIGHT SOMES ON THEN CLOCKS OUT AND I CANT TELL ANYONE WHATS ONE THE SCREEN BECAUSE IT IS BROKE SO IF ANYONE CAN HELP WITH THIS PROBLEM I WOULD LOVE IT THANK U
U NEED A NEW IPOD
IF UR SCREEN DOESNT WORK UR IPOD IS USELESS UNLESS U ONLY WANT TO USE IT FOR DISK USAGE -
Help needed with permissions problem in new Aperture 3.5.1
Hello and thank you for helping me with my first question to this wonderful support center. I have been using Aperture for many years. I recently upgraded my Mac to Mavericks, now running 10.9.2. and then upgraded (by necessity) to Aperture 3.5.1. I am working on a big project for a client and have an assistant in another city. I live outside the US so mailed my library to my asst. on an external drive. She updated to 10.9.2 or .3 and Aperture 3.5.1. No problems. She modified the library and sent the library to the client in another city in the US on an external drive who has also upgraded to Mavericks and is running Aperture 3.5.1. So we are all in Mavericks with recent Apertures. When client tried to open the sent library client got a message that stated:
"Aperture cannot access this library. To use this library, make sure its file permissions are set correctly.”
Clientʻs Tech assistant at her office is a PC specialist but apparently did try on Friday and did try to repair permissions but I am told that it did not work. I wish I had more specific info on what Tech assistant did but I do not at this time.
On Monday I would like to give them very specific instructions about what to do to open the library
For recent discussions I have found only this
https://discussions.apple.com/message/23600132#23600132
Oct 30, 2013 3:35 PM by Frank Caggiano
about repairing permissions.
I am sure that we are all running Mavericks and new Aperture, that does not seem to be at the root of the immediate problem. As we are in two different countries and three different cities and communication is hard, please tell me if this is a common problem with an easy fix and if it should be fixed by Repairing Permissions, please tell me exactly what I should tell them to do on Monday. They can at least see this discussion from their city!
Many thanks!! This is an urgent project so I very much appreciate your help.Have your collegues check the file system of the drive and the "Ignore Ownership on this volume" flag.
To check the filesystem and "Ignore ownership" flag select the drive in the Finder and use the command "File > Get Info ⌘i"
In the panel unlock the padlock in the "Sharing & Permissions" brick and set the "Ignore ownership" flag at the bottom of the panel.
Also, check the "General" brick of the panel. The format should be showing as "Mac OS Extended (Journaled)". Aperture checks for the correct formating before opening a library and may refuse to open a library on a drive formatted for Windows.
If the format is wrong, it would be best to move the library to a different drive with the correct formatting.
Once the "Ignore ownership" flag is set, try again to repair the permissions and see, ifyou now can open the library. -
hi allll
i have buyed new MSI 848p Neo and i have the following hardware
CPU: 2 GHZ 533 P4
Memery : 256 DDR 2700
GC: MSI 848 p
HD: WD 10 GB
when i connacted everting only the processer fan was working the hard drive and the CD doesnot work (POST)
if i unplage the Hard drive and the CD it will work (POST)
the problem is the Pc doesnot Post only the processer fan and i have blank screen ?
help needed
thanksTry this.
Put your optical drives like CD-ROM drive to IDE 1 and set as Primary Master aka Master mode and put your HDD to IDE 2 and set as Secondary Master aka Master mode also.
Btw, what is your PSU specs? -
Help needed with shutdown problem
Hi,
can anybody help me with my K7N2-L mobo. I have Bios V5.10, using XP Pro. Everything works fine untill I load the Nvidia drivers for the onboard items. As soon as this is loaded the unit always restarts no matter what shutdown option is selected, so I have to just power of the PC at a DOS prompt.
I have reinstalled XP and just loaded the nvidia drivers on there own but the same issue occurs.
System Spec if it helps
Mobo - K7N2-L - nforce SPP
CPU - AMD XP 2000+
Mem - 512 PC2700
Graphics - Geforce 4 Ti4200
On board lan and sound
Addition netgear lan card
us robotics v90 modem
any help appriciated thanks Jon_!heres the out come.
1. uninstalled the nvida nforce drivers.
2. checked it shut down ok - it did.
3. installed the realteck AC97 drivers and set them up. Added the center sub and rear speakers into the volume options and selected the mic and line in channels as the outputs. Tested and worked fine.
3. checked shutdown Ok - it did.
4. used the nforce disk to install the lan and pci to agp bus drivers on there own.
5. Restarted and tested lan connection.
6. Tested shut down - Fantastic it works and Ive got sound.
also in the process it found the usb2 drivers - so all in all a 100% outcome.
Unless Ive missed some things out that are installed by the nforce drivers.
Cheers -
Help needed with Layout problem
Hello everybody
I need to insert components such as buttons in a JPanel using absolute positioning
I still cant dot this
even if I used the method setLocation for the component
I wanna know if I have to change the default layout for JPanel or whatever
thanks a loti found this quite useful:
http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html#border
dont know if it will specifically help with your absolute positioning problem. -
Major help need with ipod mini
My ipod mini turns on. The menu appears, however when I click to play music nothing happens, it's frozen at that point. I have reset it, lost my music and tried to download my playlist again and it will not download. Appreciate any advice.
Strange, doing a reset will no erase data in your iPod, but restore does. Suggest that you plug your iPod with your PC and open the iPod updater (u may need to download for the latest version) and do a restore, for further info read the following .. it is really very helpful
http://discussions.info.apple.com/webx?128@@.68ae8668 -
Help needed with connection problem before I chew off my foot.
I am on 24/7 with Virgin.
From last Friday, my connection telephone number has been constantly engaged.
BT tell me it is not a valid number (?).
I can access the internet just by changing the number in remote access to the one I'm using now - a pay by the minute number.
This leads me to believe thay my settings are correct - as they have been for a considerable time.
Virgin have responded once with a standard reply confirming the telephone number (useless) to four e-mails. There is an unconnected (no pun intended) 'server' problem with their 'online help'.
I am on Netscape or IE, external Zoom modem and I haven't done anything which might alter my settings.
Any help would be much appreciated - even sympathy might make me feel better!
Please bear in mind that I am a techno-idiot with any advice offered.
Thanks in advance.I get a perpetual 'engaged' tone with a mechanical woman telling me that the number is busy, please try later.
The 'helpline' is a premium number. Cleverly, I have had premium numbers blocked on my 'phone line to defeat the fraudsters re-directing calls.
This means that I have to use someone else's 'phone to call a premium number!
Since last Friday, I have sent a total of six e-mails to Virgin and received one 'standard' reply which was of no help.
I agree that it seems like an ISP problem.
However, perhaps someone could kindly talk me through the things I ought to be checking on my computer (in words of one syllable where possible!).
Thankyou in anticipation. -
Help Needed with Data-modeling to build an application on
Hi would anyone be able to help me in creating a data model cause im really stuck with this one .Basically if been asked to create a survey application in oracle apex that use to excel based . So the info i was given was in a form of excel sheet which looks like this
NAME
E-MAIL
TSSA
ORACLE
HP
IBM
MS
SAP
INTERGRAPH
CISCO
Relationship
Contracting
Performance
Architecture
Supplier Feedback
comments
Jxxxxxx yyyyyyf
[email protected]
Yes
Yes
Yes
Yes
x
requested to be added
nnnitha iiiiiah
[email protected]
Yes
Yes
Yes
x
x
Knnnn kkkikot
[email protected]
Yes
x
x
is not payed
Gggrt Louuuue
[email protected]
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
x
x
x
x
jeiiiha ad
[email protected]
Yes
x
to meet with
John Rat
[email protected]
Yes
x
x
So where it says yes thous are the vendors that people associated with them have to asses and where there's an X thous are the topics that the vendors have to be rated on . So if for example the first guy on the list Jxxxxxx yyyyyyf will asses TSSA , ORACLE, HP , IBM , MS , SAP on the topic of Architecture and if you look at the second user nnnitha iiiiiah he would rate TSSA , ORACLE , INTERGRAPH on the topics of Relationship and performance . Any idea how i could data model this to get my table structures right .so that features like completion status could be displayed to the user through APEX which can only be done by a correct data-model i have tried normalization but i did go anywhere becauce there are so many variations any idea on how you would go about data modeling this would be greatly appreciated thank youNot really an APEX specific question.. Maybe you should try posting this in the data modeler forum : SQL Developer Data Modeler
Thank you,
Tony Miller
LuvMuffin Software -
Pls Help urgent with DATE problem
Dear Sir,
I have to make a classified system using asp and its almost
ready but.....,
i really have a big hope that someone helps me here
I have two columns to play with
1. strDate
2. StrDateDisplayAD
Once the user submits his AD I want the date to be inserted
into the date
column strDate which is working perfectly well
but at the same time I want the date to be added + 5 days and
insert into
the strDateDisplayAd column
for Example,
Lets say someone post his ad on 5th July, then the values in
the column must
be
strDate | StrDateDisplayAD
5/6/06 | 10/5/06
Thanks in advanceUse a hidden form element that has a value of 5 days added.
In ASP VBScriptit would look like this:
<input name="StrDateDisplayAD" type="hidden"
id="StrDateDisplayAD"
value="<%= FormatDateTime(DateAdd("d", 5, Now()),2)
%>">
Ken Ford
Adobe Community Expert
"Techy" <[email protected]> wrote in message
news:e883h2$it2$[email protected]..
> Dear Sir,
>
> I have to make a classified system using asp and its
almost ready
> but.....,
> i really have a big hope that someone helps me here
>
> I have two columns to play with
>
> 1. strDate
> 2. StrDateDisplayAD
>
> Once the user submits his AD I want the date to be
inserted into the date
> column strDate which is working perfectly well
>
> but at the same time I want the date to be added + 5
days and insert into
> the strDateDisplayAd column
>
> for Example,
>
> Lets say someone post his ad on 5th July, then the
values in the column
> must
> be
>
> strDate | StrDateDisplayAD
>
> 5/6/06 | 10/5/06
>
>
> Thanks in advance
>
>
> -
Help need with dire problem please.
Hi all, my 24 inch iMac has spat the dummy! I installed a trial version of Photo Shop and somehow while attempting to install the program I got a weird series of screen images with the prohibition sign......never seen this one before.
Tried to do a restart, but the grey Apple screen came up with rapidly repeating logo's, 'prohibition' and question marks and others too.
I though maybe an 'archive and install' might be the way to go, but first tried all the keyboard commands to get it going, not successful!
Initially the archive and install got going OK but I decided to abort the installer and go back, restart the installer and try to get into disc repair. I thought this would enable me to delete the offending installer for Photo Shop.
Now I find I cannot get the Leopard disc to fire up. A grey screen comes up with the circulating wheel, but no boot up. I have Disc Warrior, but this disc also is not recognised.
I have tried all this several times to no avail. I have everything backed up to my EHD. Cannot access this either at the moment. Thank goodness for my MacBook.
Can anyone shed some light on this problem. I would be most grateful if you could.
Ron Begg, AustraliaSince your startup volume install was aborted, your disk never got "blessed" as a startup volume, that's one reason why your running into so many problems.
Also you might be "locked out" of the volume due to install abort.
Do this First -
Restart with the Command and S keys held down (single user mode)
and enter the following commands
(one at a time - pressing return after entering them):
mount -uw /
chown root:admin /
chmod 1775 /
again at the command prompt type:
/sbin/fsck -fy
Repeat fsck until no errors found.
Once fsck has run successfully-
again and lastly at the command prompt type:
reboot
If everything was successful, you should be able to get your
Leo install disk to boot or anything else you would like to try.
Kj -
Major help needed with replacing xskey
here's the pickle...
i lost my logic pro 7 xskey while traveling.
i can't install/update studio without it, nor run pro 7.
i am currently in a country that doesn't have apple support phone lines.
i can't contact any other apple support phone lines from where i currently am.
I NEED TO FIND A SOLUTION ONLINE, FAST !!!
someone that has information/influence please help me.
praying for a solution.You didn't say why you are installing. If you've already installed the upgrade on your machine, you won't need the key.
If you are reinstalling, you shouldn't need to key (because your machine is already authorised).
If you are trying to install your copy of LS on a different machine entirely, then that's different. If you are re-installing on your main machine because you had to reformat, if you'd save your authorisation file you may not have needed to reauthorise again.
What I'm saying is, if you gave some specifics of what and why you are doing this, then I might have been able to help you without having to bother Apple.
But if you are trying to install on a different machine and don't have your dongle, the only people who can legally help you is Apple. Can you phone a friend in the respective country and get them to phone Apple on your behalf? -
Help needed with Layer problem
I am fairly new to Web design. I am trying to get pictures to
go on top of an existing picture when you click on a thumbnail.
I used layers and can get the part where you click the
thumbnail and the larger picture appears. I just can't get the
layer to stay positioned over the existing picture. I understand
that Layers go of the top left of the web page so different size
monitors mean different positions. is there any other way to do
this with or with out layers. my site is
http://www.corykerrphotography.com
Thanks for any help.
None of the links work yet because I am trying to get this
page done first.
CoryOn Wed, 24 Jan 2007 02:18:50 +0000 (UTC), "Cory K"
<[email protected]> wrote:
>I am fairly new to Web design. I am trying to get
pictures to go on top of an
>existing picture when you click on a thumbnail.
> I used layers and can get the part where you click the
thumbnail and the
>larger picture appears. I just can't get the layer to
stay positioned over the
>existing picture. I understand that Layers go of the top
left of the web page
>so different size monitors mean different positions. is
there any other way to
>do this with or with out layers. my site is
http://www.corykerrphotography.com
>
> Thanks for any help.
> None of the links work yet because I am trying to get
this page done first.
>
> Cory
Go here and get the free extension:
http://www.projectseven.com/tutorials/images/showpic/index.htm
Win
Win Day, Wild Rose Websites
http://www.wildrosewebsites.com
[email protected]
Skype winifredday -
Help needed with valueChangeListener problem
I have the following code:
<h:dataTable border="0" id="constituyentes" value="#{db_inserta.constituyentes}" var="vl" style="text-align: center;" bgcolor="#F5F5F5" cellpadding="8">
<h:column>
<f:facet name="header">
<h:outputText value="Constituyente" style="color:#800027;font-weight: bold;"/>
</f:facet>
<h:outputText value="#{vl.Descripcion}" style="color:#0000FF;"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Resultado" style="color:#800027;font-weight: bold;"/>
</f:facet>
<h:inputText value="#{db_almacena.valores}" style="color:#0000FF;" valueChangeListener="#{db_almacena.almacenoVector}" immediate="true"/>
<f:param name="orden" value="#{vl.Orden}"/>
</h:column>
</h:dataTable>
the db_almacena bean:
ArrayList vect_valores=new ArrayList();
public void almacenoVector(ValueChangeEvent event)
System.out.println("Going to change the System");
vect_valores.add(new SelectItem(new String(g)));
public String getValores(){
return valores;
public void setValores(String set) {
valores = set;
}The dataTable is filled from a Resultset. It gives 5 sets (rows).
My idea is to get the values from the inputText of each row and store it in an ArrayList. That is why I use the valueChangeListener.
I have 2 problems:
1. The values of the inputText are not got by the db_almacena (session scope).
2. If I have in the valueChangeListener method of the bean the line: "vect_valores.add(new SelectItem(new String(g)));"
I get an error caused by the ProcessValidationPhase.
Any ideas?
Thanks in advanceRight now I am at the following point:
<h:dataTable border="0" id="constituyentes" value="#{db_inserta.constituyentes}" var="vl" style="text-align: center;" bgcolor="#F5F5F5" cellpadding="8">
<h:column>
<f:facet name="header">
<h:outputText value="Constituyente" style="color:#800027;font-weight: bold;"/>
</f:facet>
<h:outputText value="#{vl.Descripcion}" style="color:#0000FF;"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Resultado" style="color:#800027;font-weight: bold;"/>
</f:facet>
<h:inputText value="#{db_almacena.valores}" style="color:#0000FF;" valueChangeListener="#{db_almacena.almacenoVector}"/>
<f:param name="orden" value="#{vl.Orden}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Unidades" style="color:#800027;font-weight: bold;"/>
</f:facet>
<h:outputText value="#{vl.Unidades}" style="color:#405172;"/>
</h:column>
</h:dataTable>
<br />
<br />
<h:commandButton action="adelante" value="SIGUIENTE -->" />
My db_almacena bean:
public String getValores(){
System.out.println("El valor es: "+valores);
return valores;
public void setValores(String set) {
valores = set;
public void almacenoVector(ValueChangeEvent event)
System.out.println("Going to change the System");
String valor = (String) event.getNewValue();
vect_valores.add(new SelectItem(new String(valor)));
}The getter getValores does not get any value, it always shows: "El valor es: null"
Moreover, if I am not misunderstanding (I am sure I am) the getNewValue method returns the current UIComponent value. So, do I have to make a binding?
I start thinking that my approach is not correct. Is there any other way of getting the inputText values of a dataTable that comes from a resultset??
Thanks again
Maybe you are looking for
-
How to change the Browser title when report runs on the web?
Hi folks, How to change the title of the browser when I run my report on the web? Iam using Internet explorer and Reports 6i. Is it possible in 6i or 10g reports? Could you please tell me the step by step procedure ? Right now the browser is displayi
-
How to print an adobe form with xml interface in r3
I have a Web dynpro application that creates an ADOBE form using an XML schema interface. I need to be able to print the same form in R/3 - is this possible? If so how do I create the interface? Thanks
-
Why do I have to re-enter my network settings daily?
My network diagnostics remember my name, password, etc., but for some reason it won't connect to the internet the first time I try each day. I have to click on "Network Settings" and manually go through to change all the red dots to green. Like I sai
-
Declaring Navigation Property in Entity Framework
Hi, I developed a sample application in EF which has 3 tables PersonDetails, BankDetails and FixedDepositDetails. Please find the table structure below create table PersonDetails (PersonId int Primary Key, PersonName varchar(30)) create table BankDe
-
How can I uninstall the demo of iWork from my Mac?
I have Microsoft Office on my new mac and every time I try to open a word document or powerpoint presentation, I end up launching the demo version of iWork. I would like to know how to remove it from my computer so this doesn't happen anymore. Thanks