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
katen-ka-za [31]
3 years ago
13

Write a function called random_marks. random_marks should #take three parameters, all integers. It should return a #string. # #T

he first parameter represents how many apostrophes should #be in the string. The second parameter represents how many #quotation marks should be in the string. The third #parameter represen
Computers and Technology
1 answer:
Damm [24]3 years ago
4 0

Answer:

Explanation:

The following code is written in Java. It creates the function random_marks as requested. It uses three for loops to go concatenating the correct number of apostrophes, quotes, and pairs to the output string before returning it to the user. A test case was added in main and the output can be seen in the attached picture below.

class Brainly {

   public static void main(String[] args) {

       String output = random_marks(3,2,3);

       System.out.println(output);

   }

   public static String random_marks(int apostrophe, int quotes, int pairs) {

       String output = "";

       for (int x = 0; x < apostrophe; x++) {

           output += '\'';

       }

       for (int x = 0; x < quotes; x++) {

           output += '\"';

       }

       for (int x = 0; x < pairs; x++) {

           output += "\'\"";

       }

       return output;

   }

}

You might be interested in
Lisa adds her co-worker Renald to a meeting and removes her secretary Olivia from the meeting. What will happen as a result?
VARVARA [1.3K]
There will be 1 person going, and there will be no secretary at the meeting
5 0
3 years ago
Read 2 more answers
Accenture has put together a coalition of several ecosystem partners to implement the principles of blockchain and Multi-party S
lutik1710 [3]

Answer:

They include;

1. MAAG Pump Systems,

2. Automatik Plastics Machinery,

3. Gala Industries,

4. Reduction Engineering Scheer,

5. Ettlinger Kunststoffmaschinen and

6. XanTec EDV- und Steuerungstechnik

Explanation:

The MAAG group consists of six companies specialized in different aspects of polymer production. They provide their services to petrochemical, pharmaceutical and food production companies. They produce pellets, gear pumps, filtration systems and components, pelletizers, etc.

They have more than 1000 staff and their offices are located in about 11 countries of the world.

8 0
3 years ago
Include the source code with comments for all modules in lab. you do not have to include test bench code. code without comments
hoa [83]
I like the UCF Football coach

7 0
3 years ago
Why save html documents as lowercase.?
astraxan [27]
Nowadays, it's really just convention to use lowercase file names.
3 0
4 years ago
PLEZ ANSWER QUICK
harina [27]
The answer is URL. ........
7 0
3 years ago
Read 2 more answers
Other questions:
  • Type the correct answer in the box. Spell the word correctly.
    14·2 answers
  • List two ways that guest could be defined
    12·2 answers
  • Consider an application that transmits data at a steady rate (for example, the sender generates an N-bit unit of data every k ti
    8·1 answer
  • Which VPN topology is also known as a hub-and-spoke configuration?
    15·1 answer
  • With his assembly lines, Henry Ford improved what process? A. computer management B. just-in-time management C. Bessemer process
    5·1 answer
  • How are people using lying today? What are the types of lying? Describe each type.
    7·1 answer
  • If you used a peach as a model of an animal cell, what would the peach's skin represent? A.nucleus B.cell wall C.cytoplasm D.cel
    10·2 answers
  • Write a method that accepts a number of seconds and prints the correct number of hours, minutes, and seconds.
    9·1 answer
  • Misspelet errors are displays with a ...<br>.. below them<br>​
    10·1 answer
  • How many sets of number do both Hex and RGB values have?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!