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]
2 years 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]2 years 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
Which is a method used with arrays?<br><br> find<br><br> index<br><br> insert<br><br> sort
Furkat [3]

Answer:

Index

Explanation:

Got it right e2020

4 0
3 years ago
A newer kind of mobile site can do a lot of what only apps used to do, so the line has blurred between sites and apps. what are
denis23 [38]
The answer is Progressive Website Applications. This specific type of website allows the user to have a particular website function similarly as to when you download the app natively on your device. One main advantage is that you wouldn't need to download the actual app to use its functions. As the applications we use in our mobile phone increase, the more application we need to download, and could be troublesome to have hundreds of app installed on your mobile device.
6 0
4 years ago
Five Star Retro Video rents VHS tapes and DVDs to the same connoisseurs who like to buy LP record albums. The store rents new vi
77julia77 [94]

Answer:

here is code in C++.

#include <bits/stdc++.h>

using namespace std;

int main()

{

   // variables to store number of each video

   int new_video,old_video;

   double total_charge;

   cout<<"Please enter number of new video:";

   // read number of new video

   cin>>new_video;

   cout<<"Please enter number of old video:";

   // read number of old video

   cin>>old_video;

   // total change

   total_charge=(3.0*new_video)+(2.0*old_video);

   cout<<"total cost is: "<<total_charge<<endl;

return 0;

}

Explanation:

Declare two variables "new_video" and "old_video" to store the number of each type of video.Read the value of both from user.Then calculate total charge by multiply 3.0 to number of new video & 2.0 to number of old video and add both of them. This will be the total charge.

Output:

Please enter number of new video:4

Please enter number of old video:6

total cost is: 24

4 0
3 years ago
100 POINTS!!!!!!!
bogdanovich [222]

A)

<u>~</u><u>Intellectual property needs to be protected because it usually has</u><u> </u><u>psychological</u><u> </u><u>value.</u>

Hope this helped you- have a good day bro cya)

4 0
3 years ago
Read 2 more answers
Which of the following describes evolution in the SDLC model?
stira [4]

Completing the requirements analysis is the evolutionary step of the Software development life cycle (SDLC). Hence option 3

<h3>What is the software development life cycle?</h3>

The SDLC is a method for evaluating and improving the development process. It enables a fine-grained study of each process phase. As a result, firms are able to maximize efficiency at each level.

SDLC aids in the achievement of these objectives by detecting inefficiencies and increased costs and resolving them so that everything runs smoothly.

Thus, Initial needs and architecture planning must be completed and are considered as an evolution in the SDLC model

Learn more about SDLC:

brainly.com/question/26366977

#SPJ1

4 0
2 years ago
Other questions:
  • A network administrator wants to have the same network mask for all networks at a particular small site. The site has the follow
    11·1 answer
  • PLEASE HELP!!!!!!!!!!!
    7·1 answer
  • You would like to create a graph that shows how much of your total investments are in stocks, savings, and mutual funds. You sho
    5·2 answers
  • In the borders and shading dialog box where would you look to see if your border will have two sides
    11·2 answers
  • What does a closed-envelope icon next to an e-mail message header indicate?\?
    8·1 answer
  • What type of link is used to call this file shown below?
    5·1 answer
  • True of False - use T or F The Math class can be instantiated.
    15·1 answer
  • What is the best free website to learn phyton programming
    5·1 answer
  • Ten ways ict has helped in social development
    7·1 answer
  • Which communication network pattern offers a fairly even flow of information, but two people interact with only one other?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!