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
PilotLPTM [1.2K]
3 years ago
11

What is the output of the code snippet given below?string s = "abcde";int i = 1;while (i < 5){ cout << s.substr (i, 1);

i++;}a. no outputb. abcdc. abcde d. bcde
Computers and Technology
1 answer:
Ronch [10]3 years ago
4 0

Answer:

The answer is "Option d".

Explanation:

In the given C++ program code, two-variable is defined, that is "s and i", in which variable s is a string type that holds a value, that is "abcde", and variable i is an integer type, that holds a value '1'.

  • In the next line, a while loop is declared, that uses integer variable which value is less than 5, inside a loop a substring function is used, that specifies the number of character and return its value.  
  • In array and string indexing starts from 0, and that variable i starts from 1, that is used in substring function, that's why it will print only "bcde".
You might be interested in
What does the abbreviation gps mean?
MissTica
GPS stands for Global Positioning System
5 0
3 years ago
Read 2 more answers
5 steps in cleaning and sanitizing smokehouse​
topjm [15]

Answer:

  1. Scrape or remove food bits from the surface.
  2. Wash the surface.
  3. Rinse the surface.
  4. Sanitize the surface.
  5. Allow the surface to air-dry.

Explanation: These are steps for cleaning and sanitizing.

4 0
3 years ago
Stonewalling sends a(n) ______ message to the other person.a. assertive messageb. confirmingc. disagreeingd. disconfirminge. com
schepotkina [342]

A financing fee is computed by taking your annual percentage rate, or APR, the amount you owe, and the time period into account.

<h3>What is finance charge of credit card?</h3>

The interest you'll pay on a loan is defined as a finance charge, and it's most commonly used in the context of credit card debt. A financing fee is computed by taking your annual percentage rate, or APR, the amount you owe, and the time period into account.

Given that,

Interest rate = 15.5%

Date: 1-3 (3 days)

Average daily balance = amount paid × day

 = $200 × 3 = $600  

Date: 4-20 (17 days)

Average daily balance = amount paid

= $300 × 17 = $5100  

Date: 21-30 (10 days)

Average daily balance = amount paid × days

= $150 × 10 = $1500  

So, total average daily balance for the month

= $(600+5100+1500)

= $7200

Now, the finance charge = $7200 × (15.5÷1

  = $93.00

Therefore, A financing fee is computed by taking your annual percentage rate, or APR, the amount you owe, and the time period into account.

To know more about finance charge refer to,

brainly.com/question/22717601

#SPJ1

6 0
9 months ago
If your current directory is /usr/david, the command cd / changes your current directory to
Veseljchak [2.6K]
The command "cd /" changes your current directory to the root directory.
6 0
3 years ago
If someone you knew was considering installing Smarthome technology, would you advise that person to install it or not? How woul
jeka94
Is this helpful? I would research extensively

5 0
3 years ago
Other questions:
  • In the ____________________ technique, the virus is divided into several parts and the parts are placed at random positions thro
    7·1 answer
  • In Microsoft word you can access the ______ command from "mini toolbar"
    12·2 answers
  • Which of the following is a true statement about psychological tests administered by computers? computers make standardization e
    9·1 answer
  • The biggest factor in determining the price of a mortgage is:
    14·1 answer
  • There are a few simple rules that you can follow to store and manage files and folders in your computer. What is the most import
    9·2 answers
  • Write the sum of products, the canonical product of sums, theminterm shorthand and the maxterm shorthand for the following:
    6·1 answer
  • Given the declarations struct BrandInfo { string company; string model; }; struct DiskType { BrandInfo brand; float capacity; };
    11·1 answer
  • How is modern technology developed? Explain.
    14·2 answers
  • By limiting the number of times a person can use a type of software before registering as the authorized owner of that software,
    15·1 answer
  • ___________ is some danger that can exploit a vulnerability.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!