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
wariber [46]
4 years ago
8

Assign a variable madLib to a function expression that has five parameters in the order: an adverb, two nouns, an adjective and

a verb. The function should return a mad lib string value by substituting the parameter values into the following template:
The [adjective] [noun1] [adverb] [verb] the [noun2]. For example: madLib("quietly", "dog", "moon", "lazy", "smashed") returns "The lazy dog quietly smashed the moon.". 1 2 3 4 5 6 7 /* Your solution goes here */ /* Code will be tested once with parameters: "quietly", "dog", "moon", "lazy", "smashed", and again with parameters: "gently", "rat", "city", "bored", "became" */ console.log(madLib("quietly", "dog", "moon", "lazy", "smashed")); 1 2 3 4 Check Next 1
Computers and Technology
1 answer:
hoa [83]4 years ago
6 0

Answer:

<em>The function is written in C++:</em>

void madLib(string adjective,string noun1,string adverb,string verb,string noun2){

   cout<<"The "+verb+" "+noun1+" "+adjective+" "+noun2+" the "+adverb;

}

Explanation:

This line defines the function

void madLib(string adjective,string noun1,string adverb,string verb,string noun2){

This line generates and returns the output string

   cout<<"The "+verb+" "+noun1+" "+adjective+" "+noun2+" the "+adverb;

<em>NB: I've added the full source code as an attachment where you can test various input strings</em>

Download cpp
You might be interested in
web pages within the same website often have different blank because they have different blank A) home pages, urls B) goals, sou
jenyasd209 [6]

Answer:

D

Explanation:

Home page will not usually be formatted the same as the contact page because each page has a different purpose

8 0
4 years ago
Which is a requirement for searching for a template
Lina20 [59]

Answer:

umm... you did not discribe the anwsers, i cannot help you

8 0
3 years ago
if you are using an administrator account during a software installation and you get prompted by the uac, you should
N76 [4]
  • If you are using an administrator account during software installation and you are prompted by UAC, all you have to do is click continue and finish the installation.This is because processes that require an administrator access token cannot be silently installed when UAC is enabled, the user must explicitly give consent by clicking yes or by providing administrator credentials.

  • Windows Security can be defined as a built-in application available in Windows 10 that provides a user-friendly interface and tools to manage common security features. An example is Microsoft Defender Antivirus, which offers real-time protection for your computer and data against viruses and many other types of malware. With Windows Security, our computers become more secure and the files on the computer.

Learn more about Windows Security here brainly.com/question/14262072

#SPJ1

7 0
2 years ago
Write a class of complex numbers consisting of:
Gnom [1K]

Answer:

hi sorry for not knowing the answer

but please follow have a great day,night, or afternoon

3 0
3 years ago
HELP PLZ ;(
Keith_Richards [23]
The answer is B or you could click when the pop up
8 0
3 years ago
Read 2 more answers
Other questions:
  • Why dose this keep popping up will give brainlest for first person answer
    12·1 answer
  • Difference between alt tab and windows tab
    15·1 answer
  • Where would you look to see how much space is available on your c drive?
    8·1 answer
  • Jess and Ann have decided to exchange messages using the Caesar cipher. If the predetermined key is seven places to the left, th
    10·1 answer
  • Use C++:
    9·1 answer
  • Two friends are eating dinner at a restaurant. The bill comes in the amount of 47.28 dollars. The friends decide to split the bi
    5·1 answer
  • PLSSS HELPP IM DESPERATE!!!
    11·1 answer
  • Help me please I will make BRAINLIEST
    5·1 answer
  • You have imported a library with the birthMonth() function. Based on the API, how many strings are inputed to calculate the birt
    11·1 answer
  • Name:
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!