answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Write a program that reads your age in years and output the age in days?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a shell program to check and display 10 leap years?

dono


Write a program which takes any number of days from the user the program should display the number of years number of months formed by these days as well as the remaining days?

Write a program which takes any number of days from the user. the program should display the number of years, number of months formed by these days as well as the remaining days.


How to Write a File Using JAVA?

Writing a file with JAVA has gotten much easier over the years. The hardcore programming which used to be a must in order to write a file has since been simplified, especially with the use of input/output streams which are now accessible with the JAVA program. Following are the steps to get started with writing a simple file using JAVA. • The first step is to import all the classes you will need. This can be done either individually or as an entire package using the command “import java.io.*.” • Next, you will want to establish a FileInputStream object, which will be used for the input and output files. Once you have established the correct objects, you will then want to name them with whatever name you would like to use for the input and output files. Try to keep it as simple as possible, even using input.txt and output.txt. • After you have named your input and output files, you will want to use the write method of the FileOutputStream. This will enable the class to write the output file. Keep in mind there are other ways which can be used to write a file, however using the write option here is the simplest method. • As the next step, you will want to verify that your program loop is reading a byte from your input steam and writing the byte to the output stream until the input file has no more bytes to be read. • Once you have verified the loop is reading and writing accurately, then just verify the complete code is accurate and you are finished. Writing files in JAVA is definitely simpler than in years past. You still have to be knowledgeable about programming in JAVA to successfully write a program. However, following the steps I have written above should help give you a start on writing JAVA code.


Can you write a program that implements cramers rule for 2x2 and 3x3 matrix?

Yes I can. I did it in QBasic about 15 years ago.


What month did Shakespeare write Romeo and Juliet?

We don't know what year he wrote it in, never mind which month. In any case, his total output of 38 plays in 23 years approximately suggests that he took more than a month to write a play.


What means cuantos anos tienes?

It reads, "How many years do you have", otherwise asking how old are you.


Can you do a 2 year program over the course of 4 years?

Can an AS program be done over 4 years


How many years does it take to finish an IT training program?

It takes about 2 years to finish an IT training program


What is the level of output after four years if initial output equals 1000 and the economy grows at a rate of 10 percent a year?

1000 x (1.1)4 = 1464.1 at the end of four years.


What input and output devices will people use in the next one to three years?

The most prevalent input and output devices that people will use in the next one to three years is smart phones and tablets. It has been estimated that approximately 1,000,000,000 smart phones will be sold in the next years.


How old is this program?

15 years


What is an Honours program in University?

An honours program generally means four years while a general program is three.