1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tpy6a [65]
1 year ago
7

Write the first line of a function named Days. The function should return an integer value. It should have three integer paramet

ers: intYears, intMonths, and intWeeks. All arguments should be passed by value.
Computers and Technology
1 answer:
nexus9112 [7]1 year ago
7 0

Answer:

<u>Program:</u>

Module Module1

Function Days(intYears As Integer, intMonths As Integer, intWeeks As Integer) As Integer

' 1 year = 365days

' 1 month=30.417 days

' 1 week = 7 days

Days = 365 * intYears + 30.417 * intMonths + 7 * intWeeks

End Function

Sub Main()

Dim years, months, weeks As Integer

Console.Write("Enter the number of years: ")

years = Convert.ToInt32(Console.ReadLine())

Console.Write("Enter the number of months: ")

months = Convert.ToInt32(Console.ReadLine())

Console.Write("Enter the number of weeks: ")

weeks = Convert.ToInt32(Console.ReadLine())

Console.WriteLine("Days: " & Days(years, months, weeks))

Console.ReadKey()

End Sub

End Module

You might be interested in
Scenario: The deputy incident commander will be replacing the current incident commander, who needs to attend to a family emerge
Flauer [41]

The current incident commander should: provide a transfer of command briefing to the new commander.

<h3>What is incident management?</h3>

Incident management can be defined as a strategic process through which a business organization (company) identifies, analyzes, and correct hazards and potential threats (problems), so as to ensure that normal service operation is restored as quickly as possible to its end users after a disruption, as well as to prevent a re-occurrence of these hazards in the future.

<h3>What is a command?</h3>

A command can be defined as a set of instruction which sets and provide the incident strategies, priorities, objectives, as well as possessing the overall responsibility for any incident.

In this scenario, we can infer and logically deduce that the current incident commander should provide a transfer of command briefing to the new commander because rank, grade, and seniority aren’t factors that are used to select an incident commander.

Read more on incident management here: brainly.com/question/11595883

#SPJ4

5 0
2 years ago
For BitTorrent, which of the following is true:
Bumek [7]

Answer:

d. All of the above

Explanation:

All the above mentioned statements are true about BitTorrent.

8 0
3 years ago
Mrs. Zoo gave out the rubric for our essay. She stated that our essay should be complete by Friday of that week. I didn't have t
Rom4ik [11]

Answer:

No

Explanation:

You had the whole week for the essay but didn't do it and then turned it in late.

6 0
3 years ago
What is a conditional Statement that causes the program to change its course​
Deffense [45]

Answer:

In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false.

Explanation:

3 0
2 years ago
What lets you do many things, like write book reports and stories?
Shalnov [3]

Answer:

4. application programs

Explanation:

5 0
3 years ago
Other questions:
  • 18 Select the correct answer.
    5·1 answer
  • Examples of algorithm
    5·1 answer
  • Which protocol do many browsers assume when you enter a URL in the address field?
    9·1 answer
  • When you are printing handouts, which of these can you do? A. Save paper by placing more than one slide per page. B. Check the f
    7·1 answer
  • Why should you not perform any personal grooming task while driving?
    5·2 answers
  • Which of the following function headings arevalid? If they are invalid, explain why.
    12·1 answer
  • An IT firm came across a startup company that offers a new system of computer storage. It is currently in the experimental phase
    11·1 answer
  • Write a Java program that generates a new string by concatenating the reversed substrings of even indexes and odd indexes separa
    5·1 answer
  • Please help I will mark brainliest ⚡️⚡️⚡️⚡️
    12·1 answer
  • Helppppppppppp please
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!