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
Maslowich
3 years ago
11

Write a grammar for the language consisting of strings that have n copies of the letter a followed by the same number of copies

of the letter b and the the same number of copies of the letter c, where n >0. For example, the strings abc, aaaabbbbcccc, and aaaaaaaabbbbbbbbcccccccc are in the language but a, abbc, bac, and aaabbbcc are not
Computers and Technology
1 answer:
Mazyrski [523]3 years ago
7 0

Answer:

def language(mystring, n):

   if n > 0:

       string_list = [x for x in mystring]

       string_cont = ""

       for character in string_list:

           string_cont += character * n

       print(string_cont)

Explanation:

When n is equal to 0, that is, n=0, The python program multiplies the characters of the string "mystring" by the integer variable "n" to output a string with all characters with the same count.

You might be interested in
Can anyone one help in outlook....plzzzz:)
Inessa [10]
I know a few of them like:

9 is F
(I think) 8 is J
4 is E
(I think) 5 is B

I will attempt to figure the others out but for now here is all I have

EDIT: I think 7 is C
8 0
4 years ago
Write a statement to create a Google Guava Multimap instance which contains student ids as keys and the associated values are st
Sergeu [11.5K]

Answer: provided in the explanation section

Explanation:

Note: take note for indentation so as to prevent error.

So we import com.google.common.collect.Multimap;

import java.util.Collection;

import java.util.Map;

class Main {

   public static void main(String[] args) {

       // key as studentId and List of Profile as value.

       Multimap<String,Profile> multimap = ArrayListMultimap.create();

       multimap.put("id1", new ExamProfile("examStudentId1"));

       multimap.put("id1", new ELearningProfile("userId1"));

       multimap.put("id2", new ExamProfile("examStudentId2"));

       multimap.put("id2", new ELearningProfile("userId2"));

       // print the data now.

       for (Map.Entry<String, Collection<Profile>> entry : multimap.entrySet()) {

           String key = entry.getKey();

           Collection<String> value =  multimap.get(key);

           System.out.println(key + ":" + value);

       }

   }

}

// assuming String as the studentId.

// assuming Profile as the interface. And Profile can multiple implementations that would be

// specific to student.

interface Profile {

}

class ExamProfile implements Profile {

   private String examStudentId;

   public ExamProfile(String examStudentId) {

       this.examStudentId = examStudentId;

   }

}

class ELearningProfile implements Profile {

   private String userId;

   public ELearningProfile(String userId) {

       this.userId = userId;

   }

}

This code is able to iterate through all entries in the Google Guava multimap and display all the students name in the associated students profile.

8 0
4 years ago
Digital Blank______ track KPIs and CSFs by compiling information from multiple sources and tailoring it to meet user needs. Mult
aleksklad [387]

Digital Dashboard track KPIs and CSFs by compiling information from multiple sources and tailoring it to meet user needs.

<h3>What are digital dashboard?</h3>

This is known to be a kind of  an analysis tool that helps a lot of business men and women to be able to examine and analyze their most vital data sources in real time.

Note that Digital Dashboard track KPIs and CSFs by compiling information from multiple sources and tailoring it to meet user needs.

Learn more about digital dashboard from

brainly.com/question/14383144

#SPJ1

3 0
2 years ago
One solid rule of thumb when prioritizing is to:
zalisa [80]

The only one that would make sense in for this is C


Answer- C

8 0
3 years ago
Read 2 more answers
Which generation of programming languages provides programmers with a visual environment for coding programs?
Andreyy89

5GL or the fifth-generation language is programming that uses a visual or graphical development interface to create source language that is usually compiled with a 3GL or 4GL language compiler.  Fifth Generation Programming or Visual programming language, is also known as natural language. It provides a visual or graphical interface, called a visual programming environment, for creating source codes.

6 0
3 years ago
Other questions:
  • What can be used to describe and document the analysis and design of complex software systems?
    14·1 answer
  • Which of these words does not describe factual data?
    8·2 answers
  • (Please select 2)
    14·1 answer
  • Using computers in place of paper to design components, products, and processes is referred to as ______.
    11·1 answer
  • The duties of a database administrator include determining which people have access to what kinds of data in the database; these
    13·2 answers
  • What would be the state of the following list after each of the first four passes in a Bubble sort, sorting into ascending seque
    15·2 answers
  • A browser allows you to set preferences for using the browser. These preferences include all of the following except
    7·1 answer
  • The online underground is used _____. Select 3 options. by law-abiding citizens only on Black Friday for networking by criminal
    11·1 answer
  • Give atleast 10 examples of wearable technologies and its functions​
    10·1 answer
  • What should you do if you do not understand the directions on a test?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!