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
kykrilka [37]
3 years ago
8

Assume the availability of a function called printStars. The function receives an integer value as an argument. If the argument

is positive, the function prints (to standard output) the given number of asterisks. Thus, if printStars(8) is called, ******** (8 asterisks) will be printed.
Assume further that the variable starCount has been declared and initialized to contain a positive integer value.

Write some code that prints starCount asterisks to standard output by:

first printing a single asterisk and no other characters then calls printStars to print the remaining asterisks.

Hint: Make sure to use the "end" option for print characters without the default newline, e.g. print("hello", end="")
Computers and Technology
1 answer:
In-s [12.5K]3 years ago
4 0

Answer:

a i just did it

Explanation:

You might be interested in
Question 8 of 10
Mama L [17]
The correct answer is A
7 0
2 years ago
What does a person study when learning computer science?
Nonamiya [84]
Honestly I don’t know for sure but I’m leaning towards B
8 0
3 years ago
Read 2 more answers
Of the following scenarios, which one is best suited to a non-linear presentation?
lions [1.4K]

Answer: B. A brainstorm session on new titles for publication series.

Explanation: I think this is the answer if it is not and it is wrong I am very sorry.

8 0
3 years ago
Read 2 more answers
Write a generic C++ function that takes an array of genericelements and a scalar of the same type as the array elements. Thetype
siniylev [52]

Answer:

Explanation:

Here is the code

#include<iostream>

using namespace std;

template <class myType>

int generic(myType *a, myType b)

{

int i;

for(i=0;a[i]!=-1;i++)

{

       if( b == a[i])

       return i;

}

return -1;

}

int main()

{

int a[]={1,2,3,4,5,6,7,8,-1};

float b[]={1.1,2.1,3.1,4.1 ,5.1,6.1,7.1,-1};

if(generic(a,5)>0)

       {

       cout<<" 5 is foundin int at index "<<generic(a,5)<<endl;

       }

       else

       {

       cout<<" 5 notfound "<<endl;

       }

if(generic(b,(float)5.1)>0)

       {

       cout<<" 5.1 isfound in float at index "<<generic(a,5)<<endl;

       }

       else

       {

       cout<<" 5.1 notfound "<<endl;

       }

system("pause");

}

/*

sample output

5 is found in int at index 4

5.1 is found in float at index 4

*/

7 0
3 years ago
What are Mauchly and Eckert’s main contribution to the development of the computer?
velikii [3]

Answer:

Though the ENIAC patent was invalidated by the U.S. District Court in Minnesota, Eckert and Mauchly have nonetheless been credited by history with inventing the ENIAC, the world's first large-scale general purpose electronic computer

Explanation:

7 0
3 years ago
Other questions:
  • Theâ ______ is a large worldwide collection of networks that use a common protocol to communicate with one another.
    5·1 answer
  • Social scientists who study criminal behavior.
    7·2 answers
  • The next four octal numbers after 36 is:________.
    10·1 answer
  • Skunkworks appeared to have ________ task interdependence, while the Levittown builder seemed to have ________ task interdepende
    10·1 answer
  • What is the output of the following code:
    12·1 answer
  • Ugh these are hard questions
    6·1 answer
  • Subscribe to twomad or you are cringe for the rest of your life kid
    5·1 answer
  • Use the drop-down menus to complete the steps to convert a macro to VBA.
    8·1 answer
  • A device is a program that must be installed in order for the peripheral device to be able to
    11·1 answer
  • Which type of service offers a preconfigured testing environment for application developers to create new software applications?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!