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
Alex_Xolod [135]
3 years ago
7

Outputting all combinations. Output all combinations of character variables a, b, and c using this ordering abc acb bac bca cab

cba.
If a = 'x', b = 'y', and c = 'z', then the output is: xyz xzy yxz yzx zxy zyx
Your code will be tested in three different programs, with a, b, c assigned with 'x', 'y', 'z', then with '#', '$', '%', then with '1', '2', '3'.

#include
using namespace std;
int main()
{
char a; char b; char c;
cin >> a; cin >> b; cin >> c;
/* Your solution goes here */
cout << endl;
return 0;
}
Computers and Technology
1 answer:
Alina [70]3 years ago
5 0

Answer:

#include<iostream>

using namespace std;

 

int main()

{

   char a;  

   char b;  

   char c;

cin >> a;  

cin >> b;  

cin >> c;

 cout<<a<<b<<c<<endl;

 cout<<a<<c<<b<<endl;

 cout<<b<<a<<c<<endl;

 cout<<b<<c<<a<<endl;

 cout<<c<<a<<b<<endl;

 cout<<c<<b<<a<<endl;

 

cout << endl;

}

Explanation:

Note: code is hard coded it does not contain any logic based coding

You might be interested in
Does anyone know the answers?
frez [133]

Answer: nah bruh sorry

Explanation:

4 0
3 years ago
If a cache access requires one clock cycle and dealing with cache misses requires an additional five clock cycles, which of the
DedPeter [7]

Answer:

B. 80%

Explanation:

To assertain:

1 hit takes 1 clock cycle while 1 miss takes 6 clock cycles

Assuming that:

  1. we have 100 accesses in total,
  2. p are hits,
  3. 100 - p are misses

So, p + (100 - p)*6 = 200\\ \\p+600-6p = 200\\\\-5p + 600 = 200\\\\5p = 600 -200\\\\p = \frac{400}{5} \\\\p= 80

Hence, option B. 80% will result in an effective access time of 2 clock cycles.

5 0
3 years ago
______ is an example of unauthorized access to your computer or accounts.
pychu [463]
Well, it wouldn't be Adware because that just has to do with ads and stuff...
It wouldn't be cookies either because they just store things to make life easier.

It would be between Phishing and Hacking. I don't think it's Phishing because that's tricking someone into giving them your account information.

I think it would be hacking.

I hope that this helps. If it does, please rate it as Brainliest :D


4 0
3 years ago
(Display characters) Write a method that prints characters using the following header: public static void printChars(char ch1, c
Juli2301 [7.4K]

public class MyClass {

   public static void printChar(char ch1, char ch2, int numberPerLine){

       int i = 0;

       for (char c = ch1; c <= ch2; c++){

           while (i < numberPerLine){

               System.out.print(c + " ");

               i += 1;

           }

           System.out.println("");

           i = 0;

       }

   }

   public static void main(String args[]) {

     printChar('a', 'z', 10);

   }

}

So far, this works by printing letters. If you need me to modify the code, I will.

5 0
2 years ago
Read 2 more answers
What does CTR stand for?
ipn [44]

click through rate is the answer


6 0
3 years ago
Read 2 more answers
Other questions:
  • When does a kernel panic occur?
    12·2 answers
  • I don’t know technically
    9·2 answers
  • blank affect your vision because your eye muscles are tired along with the rest of your body and is difficult to focus
    11·2 answers
  • How do I make my own extension for chrome?
    7·1 answer
  • What additional features on your router would you implement if you were setting up a small wired and wireless network
    5·1 answer
  • PLEASE HELP!!!!
    7·1 answer
  • 1.Input device which transfers information and images from physical documents to computer files.
    14·1 answer
  • What is a Slide Master? A. the placeholder used to insert objects B. the sequence of slides in a presentation C. the default des
    14·1 answer
  • Priortization is an example of a skill that helps you reach long term goals because
    14·1 answer
  • Does anyone have discord
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!