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
elena55 [62]
3 years ago
10

Complete the function ConvertToDecadesAndYears to convert totalYears to decades and years. Return decades and years using the Ti

meDecadesYears struct. Ex: 26 years is 2 decades and 6 years.

Computers and Technology
1 answer:
Sergeeva-Olga [200]3 years ago
6 0

Answer:

It is a C++ program. The complete function   ConvertToDecadesAndYears which takes totalYears as parameter and convert totalYears to decades and years is provided in the attached document.

Explanation:

The explanation is provided in the attached document.

The screenshot of the complete code along with its output is attached.

You might be interested in
What will be the result from running the following program?
qwelly [4]

Answer:

If this is python

then you will get this from console:

Grades
100
93

82

Total
275

5 0
2 years ago
Susan needs to use a lookup function to find an exact match of an inventory item, so she will set the range_lookup value to ____
Hitman42 [59]
<span>Susan needs to use a lookup function to find an exact match of an inventory item, so she will set the range_lookup value to false. 

Thank you for posting your question here at brainly. I hope the answer will help you. Feel free to ask more questions here.
</span>
5 0
3 years ago
What is the main difference between a struct and a class?
Kay [80]

Explanation:

A class encapsulates methods, while a struct cannot.

4 0
3 years ago
A(n) ___________________ is a set of characters that the originator of the data uses to encrypt the text and the recipient of th
Sindrei [870]

Answer:

The appropriate response will be "Public key".

Explanation:

  • A public key would be created in something like such key encryption cryptography consisting incorporates asymmetric encryption of the keys algorithms.
  • Those same keys have been utilized to transform a document to even such an unintelligible form. Decryption consists done using only a separate, however corresponding, secret address or private key.
6 0
3 years ago
Write your own SportsCar class that extends the Car class. This new class should have the following unique protected instance va
Rus_ich [418]

Answer:

class SportsCar extends Car {

   

   protected String myColor;

   protected float myEngine;

   protected String mySuspension;

   protected String myTires;    

}

Explanation:

With the provided information the class can be written as above.

Create a class called SportsCar. Since it extends from the Car, you need to type extends Car after the class name. This implies that it is a subclass of the Car class.

Then, declare its protected variables:

a string called myColor that will hold the color,

a float myEngine that will hold the engine size

a string mySuspension that will hold the suspension type

a string myTires that will hold the tire type

8 0
3 years ago
Other questions:
  • Why wont my brainly account rank up even tho i have 1193 points and 5/5 brainly trophies but it still wont rank me up to vistro
    11·2 answers
  • To create a formula in ____, you would first click in one of the cells.
    15·2 answers
  • What New England industry quickly collapsed with the discovery of oil in Pennsylvania?
    11·2 answers
  • As you increase the speed of your car, the engine has to operate at higher and higher speeds in order to move the car along. If
    11·2 answers
  • What is an activity that can help you enhance the appearance of your computer’s desktop?
    12·2 answers
  • Which of the following are examples of how a company might use consumer data it had collected? a To decide what types of product
    10·1 answer
  • What is employee Internet management (EIM) software?
    5·2 answers
  • You have read about the beginnings of the Internet and how it was created. What was the Internet originally created to do? (sele
    10·2 answers
  • Will give brainliest
    14·1 answer
  • The Carolina International School is more Earth-friendly than typical schools because
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!