Write a java program to take number of years, months and days from the user and print the total number of days (Consider 30 days in a month).​

Answers

Answer 1

Answer:

Explanation:

import java.util.Scanner;

public class Year_Week_Day

{

   public static void main(String args[])

   {

       int m, year, week, day;

       Scanner s = new Scanner(System.in);

       System.out.print("Enter the number of days:");

       m = s.nextInt();

       year = m / 365;

       m = m % 365;

       System.out.println("No. of years:"+year);

       week = m / 7;

       m = m % 7;

       System.out.println("No. of weeks:"+week);

       day = m;

       System.out.println("No. of days:"+day);

   }

}


Related Questions

Alicia wants to change the display of the Outlook Today window on her computer. After clicking on Customize Outlook Today, which steps should she follow to change the display from three columns to one column?

In the Startup area, click 1 from the drop-down menu.
In the Startup area, click Standard (one column) from the drop-down menu.
In the Styles area, click Standard (one column) from the drop-down menu.
In the Styles area, click 1 from the drop-down menu.

Answers

Outlook is the mailing program used to receive and send emails. The display from three columns to one column can be changed by clicking in the style's area and selecting the standard. Thus, option c is correct.

What is the style's area?

The styles area is the option in the Outlook used to change the format of how the display looks to the users in the mail area. They are found in the format text tab.

In the tab select the style's area and choose the standard option which is the one-column option that can be selected from the drop-down buttons.

Therefore, option c.  choosing the standard option in the style area is used to change the display.

Learn more about outlook here:

https://brainly.com/question/19755799

#SPJ1

What is a device that makes calculations, stores data, and executes instructions according to a program

Answers

Answer:

computer

Explanation:

it's a computer

A computer is a device that makes calculations, stores data, and executes instructions according to a program.

Help me pleaseeeeeeee

Answers

Answer:

It has each number, zero through nine, listed in alphabetical order.

Accenture’s Multi-party Systems practice partnered with the World Economic Forum to create the Known Traveler Digital Identity (KTDI) solution. This enables consortium partners to access verifiable claims of a traveler’s identity data so they can assess their credibility, optimize passenger processing, and reduce risk.

How does KTDI help both the travel industry and the customer?

Answers

KTDI works with reducing the industry risks, and passengers have a more smooth and trustworthy experience, by allowing individuals to choose when and how they disclose data.

What is the role of KTDI?

The KTDI is the Known Traveler Digital Identity solution that works with the development of the profile with the attestation data. It limits the sharing of data with the permission for what to share and when.

KTDI help the travel industry and customer as:

The industry risks are reduced, and passengers have a more smooth and trustworthy experience, by allowing individuals to choose when and how they disclose data.

Individuals can manage their own profiles on KTDI and obtain digital "attestations" of their personal data, deciding what information to share and when.

The more attestations a traveler collects and publishes, the better able consortia partners, governments, and other parties will be to provide a smooth and safe journey.

Learn more about KTDI, here:

https://brainly.com/question/26033804

#SPJ1


If your supervisor asks you to switch to a different word-processing software going forward, what soft skill is he hoping for?
A punctuality
B. honesty
c. flexibility
D. sociability

Answers

The soft skills developed in an employee with his supervisor allowing him to work on different software is flexibility. Thus, option C is correct.

What are soft skills?

Soft skills are given as the skills of an employee that helps the growth as well as the navigation to the success and achieving goals.

The development of skills that mediates the employee to work with the availability of the new projects and the helps in the growth with learning new techniques is given as flexibility. Thus, option C is correct.

Learn more about Soft skills, here:
https://brainly.com/question/14500704

#SPJ1

I want the answer of this task ( using prolog language ) ASAP because the deadline is tomorrow. Please help :"

Answers

Answer: That they have all the same number and that level three have the more tech inside something than levels one and two

Explanation:

What is the role of the computer in banking system?

Answers

Answer: In banks, computers are used for keeping account information of customer accounts. Banks use technology to carry out payments effectively and successfully. Computers help bankers keep a record of and verify financial records much quicker. Hope this is helpful.

what is capital of china is located close to which body of water

Answers

Answer:

Sungari (Songhua) River

Explanation:

It is located on the south bank of the Sungari (Songhua) River. The site of the city is generally level to undulating, except near the river itself, where low bluffs lead down to the floodplain in places; low-lying areas are subject to flooding.

Answer: East China and South China straddle along the Pacific Ocean, with the South China Sea to the south, and the East China Sea and Yellow Sea to the east.

Explanation:

Question 9 of 25
A computer programmer will often use a
by other programmers.
which includes code written
A. website
B. library
C. copyright
O D. license

Answers

I’m not entirely sure if this is correct but I think it’s A. Website
The answer can possibly be a Website!!

Submitting Unit 11 Assignment – Step 1 Python CS Fundamentals
Need the code to this.

Answers

The Step 1 Python CS Fundamentals  coding work is given in the document attached below.

What are the basic fundamentals of Python?

The basic steps or lessons in Python is made up of:

Kinds of Data types ( such as int, float, strings)The kinds of Compound data structures ( such as lists, tuples, and dictionaries), etc.

Note that by knowing the Step 1  of the Python CS Fundamentals  coding work, one can know what to do next. See the document attached for more information.

Learn more about Coding from

https://brainly.com/question/16397886

#SPJ1

Part 2: Code the Program
Use the following guidelines to code your program.
1. Use the Python IDLE to write your program.
2. Using comments, type a heading that includes your name, today’s date, and a short description.
3. Set up your def main(): statement. (Don’t forget the parentheses and colon.)
4. Write one if-else statement using user input.
5. Include a print message for both conditions (True and False).
6. Conclude the program with the main() statement.
7. Follow the Python style conventions regarding indentation in your program.
8. Run your program to ensure it is working properly. Fix any errors you may observe.

When you've completed writing your program code, save your work by selecting 'Save' in the Python IDLE

u get brianliest if u can help

Answers

Answer:

You can try something like this:

# YOUR NAME

# May 16th 2022

# This program

def main():

   age = input("Enter your name: ")

   

   if not age.isnumeric():

       print('Invalid input.')

       return

       

   if (int(age) >= 18):

       print('You are an adult.')

   else:

       print('You are a minor.')

main()

☐ A text-shadow style was created and used for the h2 element
☐ A box-shadow style was created for the figure element
☐ The article has a border that is solid, thin, and a named color of your choosing
how do i do this in css?

Answers

Answer:

You can try and form your CSS file like the following:

h2 {

   text-shadow: 0px 2px red; /* creates a red text shadow for all h2s */

}

figure {

   box-shadow: 0px 4px red; /* creates a red box shadow for all figures */

}

article {

   border: 1px solid red; /* creates a thin red border for all articles */

}

The agency that started ARPANET was looking for
technologies that could be used by
O the military
O farmers
O transportation.
O electronics

Answers

Answer:the military

d

Answer:

A

Explanation:

Which of the following are examples of unstructured data?
Select one or more:

a) Phone Numbers
b) Dates
c) Credit Card Numbers
d) Social Media
e) Weather Channel Data

Answers

Answer:

social media

Explanation:

this includes text, audio, images, and video.

HTML is a platform dependent language. it is true Or false​

Answers

Answer:

False

Explanation:

HTML is a platform independent language.

What is a possible weakness of an expert-novice pair?

They will not come up with new ideas.
They will not come up with new ideas.

They are more likely to take long breaks.
They are more likely to take long breaks.

The novice will be overwhelmed by the expert and not offer suggestions.
The novice will be overwhelmed by the expert and not offer suggestions.

They are not familiar with how existing programs work.

Answers

Note that a possible weakness of an Expert-Novice Pair is that the novice may be overwhelmed by the expert and not offer suggestions.

What is the rationale for the above response?

The above is based on the power dynamic that often exists between an expert and a novice.

The expert, being more experienced and knowledgeable, may dominate the conversation and decision-making process, leaving the novice feeling intimidated and less likely to speak up or offer their own ideas.

This dynamic can lead to an unbalanced collaboration where the novice's potential contributions are not utilized, potentially hindering the overall effectiveness of the team.

It is important for both parties in an expert-novice pair to recognize and work to mitigate this power imbalance to ensure a more equal and productive working relationship.

Learn more about Expert-Novice Pair:

https://brainly.com/question/2106820

#SPJ1

To improve security, a server should be decentralized.

Question 8 options:
True
False
Question 9 (0.5 points)
Switches are preferred over hubs because they reduce any unnecessary traffic.

Question 9 options:
True
False
Question 10 (0.5 points)
The purpose of a __________ is to connect all of the network devices together on an internal network.

Question 10 options:

Mainframe


Hub


PC


Client-server

Answers

The  security of network is improves with decentralization. The switch is preferred over hub. The hub mediated the connection of devices in the internal network.

What is the IT Structure?

The IT structure is given as the composition of the hardware modules, software products, network system with the database for providing services and projects.

The IT structure is more secured when it is decentralized. Thus, the given statement is true.

The switch function to maintain a MAC table over the address. With their ability to remove the unnecessary traffic in the channel, they are preferred over hub. Thus, the given statement is true.

The internal network has the connection of the network devices that are formulated with the Hub. Thus, option B is correct.

Learn more about IT structure, here:

https://brainly.com/question/13260104

#SPJ1

Your online actions can have real- world consequences. True or false?

Answers

Answer:

This is very often false. It's not like anyone knows where you are when you're online, so they really cannot do much about your actions. However, there are times where this is true.

True

For example, if you were to own a deep-web market, that's at least 20 years of jail time.

If you were to meet up with somebody bad from the internet, things bad happen.

If you send illegal information across the internet, you can suffer jailtime.

There are so many more examples, but it's really not worth it

8) [Price] * [Quantity] is an example of a ________.


A. summary statistic


B. calculated field


C. logical operator


D. comparison operator

Answers

Answer:

Summary statistics

Explanation:

Option B is out of bussisnesLogical operatiors are and ,or ,not Comparison operatiors are ≥,≤

So option A is correct

public static String[] strArrMethod(String[] arr) { String[] result = new String[arr.length]; for (int j = 0; j < arr.length; j++) { String sm = arr[j]; for (int k = j + 1; k < arr.length; k++) { if (arr[k].length() < sm.length()) { sm = arr[k]; // Line 12 } } result[j] = sm; } return result; }

Answers

Answer:

answer is 24

Explanation:

hope this helps

one word for The characters typed by a user using a
keyboard.

Answers

Answer:

Alt codes hope this helps.

What is the difference between applying risk measures for insurance purposes versus applying risk measures for compliance? Provide an example and explain how both have significant value to a business.

Answers

Answer:

Risk management and measurement are both tools that help an organization develop tactics and strategies to minimize financial liability and support business continuity. Though one looks at risk from a holistic perspective and the other is used to quantify the risk to facilitate a company’s decision-making process.

Risk management is a proactive process of identifying, prioritizing, analyzing, and mitigating any internal or external risk. The purpose of risk management is to reduce the impact of undesirable and unforeseen risks.

On the other hand, risk measurement is a function of quantifying the probability and potential magnitude of the loss of any risk on an organization. It is an element of risk analysis and a critical tool that supports risk management.

Explanation:

Hope it helps :)

Explain how Smart Cars enhance mobility features?

Answers

Answer:

reduce traffic congestion and air and noise pollution, increase safety, improve transfer speed, and reduce transfer costs between different modes of transportation.

Explanation:

Smart Cars enhance mobility features by These automobiles have an in-built eSIM, and functions along with voice-primarily based totally navigation, and voice-assisted tele cellsmartphone calls.

What are the key features?

Automated motors navigate the street the usage of constructed in sensors, and may be augmented with virtual connectivity permitting the automobile to speak with close by motors, with surrounding street infrastructure like site visitors signs, and with the cloud-primarily based totally networks offering actual time riding updates, caution of changing.

These automobiles also are able to over-the-air software program updates, similar to your smartphone. There are lakhs of such automobiles going for walks on Indian roads already.Smart mobility refers to the usage of modes of transportation along or maybe in preference to proudly owning an ICE automobile. This can tackle many unique forms, which include ride-sharing, vehicle-sharing, public transport, walking, biking, and more.

Read more about the mobility :

https://brainly.com/question/10185143

#SPJ2

7.4.4: Length of User's Name

Answers

Answer:

user_name = input("input user name: ")
print(len(user_name))

Explanation:

input - input function in python

len - length of value

print - print data

In Python, you can calculate the length of a user's name using the built-in len() function.

What is the length of the string?

In Python, the length of the string can vary depending on the specific code being written. Python code can be as short as a single line or as long as multiple lines of code.

Here,
In Python, you can calculate the length of a user's name using the built-in len() function.


Here's an example code,

name = input("Enter your name: ")

length = len(name)

print("Your name has", length, "characters.")

In this code, the input() function prompts the user to enter their name and stores it in the name variable. The len() function is used to calculate the length of the user's name, which is then stored in the length variable. Finally, the length of the user's name is printed to the console using the print() function.

Thus, In Python, you can calculate the length of a user's name using the built-in len() function.

Learn more about the Length of the string here:

https://brainly.com/question/29126587
#SPJ2

The question seems to be incomplete,
The complete quesiton is,
how to calculate the Length of the User's Name in python?

One note captures your ideas and schoolwork on any device so you can — and -

Answers

Is there a word bank in the question

When you take action independent of direct instruction, you are showing _____. power power insubordination insubordination courage courage initiative initiative

Answers

Leadership qualities are the traits that define a person's ability to guide and organize. Independent action without any direct instruction is called initiative.

What is an initiative?

An initiative is an act of performing and executing the task independent of any instruction or guidance from someone. It is based on self-motivation rather than following commands given by others.

Insubordination is a refusal or disobedience in obeying any command, power is the ability to have an influential behavior and courage means bravery to do something without fear.

Therefore, independent actions without instructions are option D. initiative.

Learn more about the initiative here:

https://brainly.com/question/21106998

#SPJ1

What is a possible weakness of an expert-expert pair?

One is likely to be overwhelmed by the other.
One is likely to be overwhelmed by the other.

They are not familiar with how existing programs work.
They are not familiar with how existing programs work.

They are more likely to take long breaks.
They are more likely to take long breaks.

They may be too set in their ways to work together.
They may be too set in their ways to work together.

Answers

Answer:

They may be too set in their ways to work

Explanation:

Because as we know two negatives don't make a positive

__ is the command to send this shutdown warning message: “The system is going down for maintenance in 2 minutes! You really need to log off now!” However, the command should not actually shut down the system.

Answers

Shutdown -k is the command to send the above shutdown warning message, but doesn't actually shut down the system.

What is a shutdown command?

In Linux operating systems, the shutdown command is an instruction set that is used to turn off a system in a secure way.

Also, it's designed to alert or notify all logged-in users that the system is shutting down, and login operations would be blocked subsequently.

Generally, shutdown -k is the command to send the above shutdown warning message, but doesn't actually shut down the system.

Read more on Linux commands here: https://brainly.com/question/25480553

#SPJ1

I will give brainyest
My dell Chromebook turned off and it won't turn back on and it's not dead. What do I do?

Answers

Answer:

Try charging battery for 25 minutes before attempting to power the Dell Chromebook system on. If the battery still won't charge, attempt to reset the EC. To do this, first shut the unit down and then press and hold the 3-key combination of ESC+ROUND ARROW+POWER.

:

turn it off or back on or get it checked out by a technechian

Explanation:

if it's a school chroombook then get the school to look at it

From the product table- name,model _num,unit_of_issue where unit of issue is equal to bt and sorted by model number in descending order.



SQL problem?

Answers

Answer:

SELECT name, model_num, unit_of_issue

WHERE unit_of_issue = "bt"

ORDER BY model_num DESC

Explanation:

The SQL query for the problem is

SELECT name, model_num, unit_of_issue FROM product WHERE unit_of_issue = 'bt' ORDER BY model_num DESC;

How to write the SQL query for the problem

From the question, we have the following parameters that can be used in our computation:

Table = product-table

Criteria = unit of issue is equal to bt

Sort = model number

Order = descending order

Using the above as a guide, we have the following query

SELECT name, model_num, unit_of_issue

FROM product

WHERE unit_of_issue = 'bt'

ORDER BY model_num DESC;

Read more about SQL at

https://brainly.com/question/33171722

#SPJ2

Other Questions
- Explain how ionic bonds, covalent bonds, and metallic bonds each form and how. - Compare naming conventions of ionic compounds and covalent compounds.- Explain how to balance chemical equations and be prepared to solve an equation over the phone.- Describe each type of reaction that can take place.- Explain the factors that affect reaction rates. pls help! Please help soon i really need this What caused Europe to be in a "age of frenzied". Discrimination against noncitizens is permissible under ______________:Question 1 options:a) Equal Pay Actb) Immigration Reform and Control Actc) Equal Opportunity Employment Actd) Civil Rights Act The circumference of a pipe is 9.24 centimeters. What is the diameter of the pipe? Use 3.14 for and do not round your answer. describe how amino acids are categorized by their chemical properties Write a paragraph with 8 sentences, about what you want to do this summer. can someone do this. Explain how the cohesive and adhesive properties of water are useful in maintaining various life processes. When the host tells me "Thanks for coming", what should I respond back? can someone please help I pay 100 Which statements accurately describe arguments made against President Bush's decision to invade Iraq in 2003?Choose all answers that are correct.The Iraqi army and air force were too strong for the U.S. military to defeat.Invading Iraq would divert attention and resources from the goal of destroying al-Qaeda.UN inspectors needed more time to determine if Iraq had weapons of mass destruction.Saddam Hussein was a moderate leader and an important ally of Israel. 95. In your own words, define a parabola. What group is most likely to practice animism Explain why the smell of a hospital or dentist's office can bring about negative emotions, and why the smell of baking cookies or a baking turkey around Thanksgiving can bring about positive emotions. Please help me find the area of compound shapes?!??! Aziza has a triangle with two sides measuring 11 in. and 15 in. She claims that the third side can be any length as long as it is greater than 4 in. Which statement about Azizas claim is correct?Azizas claim is not correct. The third side must be between 4 in. and 26 in.Azizas claim is not correct. The third side can be any length less than 26 in.Azizas claim is not correct. The third side can be any length.Azizas claim is not correct. The third side must create a scalene triangle. Read the quotation from The Changing Faces of Terrorism.It is not too early to hazard the guess that, by engaging in crimes against humanity, the new face of terrorism may have contributed to its own eventual demise.In this statement, the author suggests that terrorism willbecome even more threatening and violent.soon accelerate attacks on innocent people.eventually become too weak to create intimidation.end because the activities have alienated people. After the Confederation of the Rhine was dissolved, the German states formed: How did the library bonds help with the war effort Please help! Ill give brainliest to best answer!