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
Bezzdna [24]
3 years ago
11

how to write a function "void funct()" which will accept a string from the user as input and will then display the string backwa

rd.
Computers and Technology
1 answer:
Mariulka [41]3 years ago
5 0

Answer:

#include <bits/stdc++.h>

using namespace std;

void funct(){

   string name;

   cout<<"enter the string: ";

   cin>>name;

   

    reverse(name.begin(), name.end());

    cout<<"The string is : "<<name<<endl;

   

}

int main()

{

   funct();

 

  return 0;

}

Explanation:

create the function funct() with return type void and declare the variable type string and print a message for asking to used enter the string.  

The string enter by user is store in the variable using cin instruction.

after that, we use a inbuilt function reverse() which takes two argument.

firs argument tell the starting point and second index tell the ending point. then, the reverse function reverse the string.

name.begin() it is a function which return the pointer of first character of string.

name.end()  it is a function which return the pointer of last character of the string.

finally, print the reverse string.

for calling the function, we have to create the main function and then call the function.

You might be interested in
2.4 Code Practice: Question 1
USPshnik [31]

Answer:

num = float(input("Enter a number : "))

ab = abs(num)

sqrt = float(ab ** 0.5)

print(sqrt)

Explanation:

6 0
4 years ago
A technically qualified individual who may configure firewalls and IDPSs, implement security software, diagnose and troubleshoot
sineoko [7]

Answer:

Security technician

Explanation:

Security technicians are responsible for fixing, planning, and implementing the IT and computer security system of organisations by making sure the safety and security of the data and information of the clients as well as the employees that make daily use of the systems

Security technicians administer security access to the clients and employees of the organization and are responsible for being up to date with the latest IT security technology developments.

7 0
3 years ago
Lower range tones generally require ________ speakers. lower range tones generally require ________ speakers. multiple choice
lilavasa [31]

Lower range tones generally require larger speakers.

It's no secret that lower range tones generally require larger speakers. This is because lower frequencies have longer wavelengths, and thus require more physical space to produce.

While this may seem like a simple concept, there are a few things to keep in mind when it comes to speaker size and low frequency response. First, larger speakers can usually reproduce lower frequencies more efficiently than smaller ones. Second, the size of the speaker's enclosure also plays a role in how well it can reproduce low frequencies.

A larger enclosure will typically have an easier time reproducing low frequencies than a smaller one.

Keep these things in mind when selecting speakers for your system. If you're looking for accurate low frequency reproduction, make sure to choose speakers with larger drivers and enclosures.

Learn more on speakers here:

brainly.com/question/14649463

#SPJ4

6 0
1 year ago
The probability that the price of a commodity is increasing is 0.62 and the probability that the price is decreasing is 0.18 . W
liraira [26]

bahug ka itlog hduxuwlowv heusuowjdd

8 0
3 years ago
PLZ HELP NEEDS TO BE ANSWERED ASAP THANK YOU
Stells [14]

In python:

lst = ([])

largest = 0

while len(lst) != 6:

   user_number = int(input("Enter a number: "))

   lst.append(user_number)

   for i in lst:

       if i > largest:

           largest = i

   print(largest)

I hope this helps

7 0
3 years ago
Other questions:
  • Lossless and lossy are the two (2) universally known categories of compression algorithms. Compare the two (2) categories of alg
    8·2 answers
  • When you copy text, the selected text is copied from the original location and placed on the
    9·1 answer
  • Do you think social media should affect presidential elections
    6·2 answers
  • If Nancy receives an encrypted message from Matthew, which key does she use to read it? Nancy’s private key Nancy’s public key M
    8·1 answer
  • Que es un programa de ordenador?
    10·1 answer
  • Difference between automated testing and manual testing
    13·1 answer
  • When a company sends you recommendations of what to buy you know that :
    12·1 answer
  • Neview of related literature happens in two wayo (1) Traditional and
    6·1 answer
  • Brainly Question
    14·2 answers
  • 1. Why does a computer have different types of ports?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!