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
Effectus [21]
3 years ago
3

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

Computers and Technology
1 answer:
scZoUnD [109]3 years ago
6 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
Carla needs to list the role for each consultant. Those with four or more years of 26 15 experience take the Lead role. Otherwis
saveliy_v [14]

Answer :

The output is attached below

Explanation:

The following formula needs to be entered into cell N5:

=IF($M5>=4,"Lead","Associate")

4 0
3 years ago
Backing up data on a computer means
aleksklad [387]

Answer: when you back data up you are copying it and then moving the copy to another storage device

6 0
4 years ago
Read 2 more answers
Headphones are an example of _____.
katen-ka-za [31]
The Answer Is An Output Device 


3 0
3 years ago
Read 2 more answers
What is the intermediate value of arr after two iterations of the outer for loop in the call sort(arr)
astra-53 [7]

The intermediate value of arr after two iterations of the outer for loop in the call sort(arr) is option C of the image attached.

<h3>What is intermediate value in programming?</h3>

This is known to be a variable that is often employed in assisting so that one can be able to compute what they want

Concluisvely, The intermediate value of arr after two iterations of the outer for loop in the call sort(arr) is option C of the image is because it will help you to have what you are after with the codes.

Learn more about ntermediate value from

brainly.com/question/11195842

#SPJ2

5 0
3 years ago
Read 2 more answers
World pade is world processing software true or false​
Evgesh-ka [11]

Answer:

yes

Explanation:

5 0
3 years ago
Other questions:
  • Formatting can be applied to
    10·2 answers
  • What word can you spell with the letters e, e, a, m, g, t, and k?
    10·1 answer
  • Given that Marcy worked 42 hours (Hours = 42) last week and earns $10.00 an hour (Rate = 10), how much did Marcy earn last week,
    12·1 answer
  • Which of these is an aggregator?
    5·2 answers
  • What is the printout for the first statement in the main method?
    13·1 answer
  • Write a program that includes functions to calculate feet to inches, inches to feet, feet to yards, and yards to feet. Then, acc
    9·2 answers
  • Software on your computer is taking a long time to load. What could help solve this problem?
    5·1 answer
  • alina is preparing to scan a microsoft sql server database server for open ports. what port should she expect to find supporting
    12·2 answers
  • Write some positive and negative impacts of computer in our daily life​
    5·1 answer
  • Which characters are used in hump notion?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!