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
malfutka [58]
4 years ago
7

In this lab, you complete a partially prewritten C++ program that includes functions with no parameters.

Computers and Technology
1 answer:
trasher [3.6K]4 years ago
3 0

Answer:

// ArtShowDiscount.cpp - This program determines if an art show attendee gets a 5% discount for preregistering.

// Input: Interactive

// Output: A statement telling the user if they get a discount or no discount.

#include <iostream>

#include <string>

using namespace std;

void discount();

void noDiscount();

int main()

string registerString;

cout << .Did you preregister? Enter Y or N:

cin >> registerString;

//Completing the remaining Program

If (registerString== "Y")

{

discount();

}

else

{

noDiscount();

}

return 0;

} // End of main function

// Discount function

public void Discount()

{

cout << "You are preregistered and qualify for a 5 percent discount."

}

// noDiscount function

public void noDiscount()

{

cout << "Sorry, you did not preregister and do not qualify for a 5 percent discount."

}

Explanation:

In the half given program, I add the the rest half in which i added-

The check condition to call the discount or nodiscount function on the basis of string input provided by the user.

The definition of discount function which call when the user is preregistered and prints the required discount message.

The definition of nodiscount function which call when the user is not preregistered and prints the required nodiscount message.

You might be interested in
What outline feature can the Navigation pane browse the document by?
sattari [20]
It can browse the document by headings.
5 0
3 years ago
Read 2 more answers
Write a function all_cats that consumes a comma-separated string of animals and prints whether all of the animals have "cat" in
RoseWind [281]

Answer:

  • Image 1 is for the function defining all_cats():

       (All the explanation is given in comments before each statement)

  • Image 2 has the code for testing the function all_cats()
  • Last image has the output of the code.

8 0
3 years ago
Effective teams use strategies that help members work together a) smoothly b) independently c) loosely d) secretly
kipiarov [429]

Answer: <u><em> A. Smoothly</em></u>

Explanation: I Just Had This Question

Brainliest Please!!!

Please!!!!!!

3 0
3 years ago
Read 2 more answers
How would you identify communication equipment?
eimsori [14]

Answer

Explanation:

There should be more context to this question but I would say there is a variety of things that could be seen as communication equipment, such as email, telephone, voice message, through mail.

6 0
3 years ago
Test if the word mold is stored in the variable word. Computer science.
Andre45 [30]

Answer:

word = str("Enter a word: ")

if "mold" in word:

 print("Mold is in the variable word.")

else:

 print("Mold is not in the variable word.")

5 0
3 years ago
Other questions:
  • How can a user choose settings that will customize a presentation so that it is best to be played automatically at a kiosk rathe
    11·2 answers
  • Which of the following is true regarding Moore’s Law? A.) explained the growth in computing capabilities between 1965 and 1995 B
    14·1 answer
  • Input numbers and segregate them by placing their values into even or odd vectors based upon their value being even or odd. Then
    12·1 answer
  • . When a system isdelivered over time, with each delivery (release) adding tothe
    5·1 answer
  • Which is the most likely reason film companies expanded so quickly?
    8·1 answer
  • .doc What is the difference between a skilled hacker and an unskilled hacker, other than skill levels? How does the protection a
    5·1 answer
  • A friend complains that she is always running out of money even though she “never buys anything expensive.” What advice would yo
    5·2 answers
  • Create and configure databases in oracle database management system operation administration
    6·1 answer
  • How do you write a multiplication formula in excel with an absolute refrence?
    11·1 answer
  • Assume that you have implemented a sequence class. Describe the mySequence object (i.e., items with the correct order and the po
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!