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
AURORKA [14]
3 years ago
12

1) Input - to be done in main() Prompt the user for and input the number of units. Prompt the user for and input the amount for

student fees. 2) Calculate the total (do not consider parking) Unit cost should be given as a
Computers and Technology
1 answer:
denis-greek [22]3 years ago
8 0

Answer:

#include <iostream>

using namespace <std>;

double calcTuition(double units, double studentFees);

void output(double total);

int main{

   double unitCost, schoolFees, total;

   cin >>"Enter unit cost: " >> unitCost;

   cin >>"Enter school fees: " >> schoolFees;

   total = calcTuition( unitCost, schoolFees );

   output( total );

}

double calcTuition(double units, double studentFees){

   return unit * studentFees;

}

void output(double total){

   cout << " Total: " << total;

}

Explanation:

The C++ console source code prints out the total cost of a student's tuition. The student is prompted to input the units and the school fees and the total is displayed excluding parking fees.

You might be interested in
To be useful for most household applications, DC voltage is?please <br>​
satela [25.4K]

Answer: To be useful for most household applications, DC voltage is passed through a step-down transformer.

Explanation: Voltage coming through AC or DC outlets is typically far too high for most household appliances to handle, so the current is passed through a step-down transformer to reduce the voltage to a usable level.

3 0
3 years ago
Jeremy is the team leader of the employees planning to display the company’s new product at a big convention. He needs to be sur
Luden [163]
Assuming no options are provided, Jeremy would do well to create a weekly progress report, detailing what the company has accomplished during the week, and what remains to be accomplished. The report should be goal-based with defined deadlines, and clear explanations on what has been done and what remains to be done, and should be organized by the various aspects of the project (accounting, marketing, etc). This report will help keep his team conscience of their role within the larger project, what they have accomplished thus far, and what still needs to be done.
6 0
3 years ago
Read 2 more answers
almost every school or university has a or council or organization that works towards provision of providing education training
disa [49]

Answer:

In education, the term stakeholder typically refers to anyone who is invested in the welfare and success of a school and its students, including administrators, teachers, staff members, students, parents, families, community members, local business leaders, and elected officials such as school board members, city ...

Explanation:

6 0
3 years ago
You are logged in as a user with limited system privileges, you are the linux system administrator and you have the password to
Allushta [10]
I use "su -" on my box. Red Hat wanted "sudo -i" in the RHCSA and RHCE courses.
5 0
3 years ago
5.15 LAB: Count input length without spaces, periods, or commas Given a line of text as input, output the number of characters e
strojnjashka [21]

Answer:

Following are the code to this question:

userVal = input()#defining a variable userVal for input the value

x= 0#defining variable x that holds a value 0

for j in userVal:#defining for loop to count input value in number

   if not(j in " .,"):#defining if block that checks there is no spaces,periods,and commas in the value

       x += 1#increment the value of x by 1

print(x)#Print x variable value

Output:

Hello, My name is Alex.

17

Explanation:

In the above-given code, a variable "userVal" is defined that uses the input method for input the value from the user end, in the next line, an integer  variable "x" is defined, hold value, that is 0, in this variable, we count all values.

  • In the next line, for loop is defined that counts string value in number and inside the loop an if block is defined, that uses the not method to remove spaces, periods, and commas from the value and increment the value of x by 1.
  • In the last step, the print method is used, which prints the calculated value of the "x" variable.    

 

7 0
4 years ago
Read 2 more answers
Other questions:
  • In order to accomplish the same goal, a person can click and hold down the mouse button and drag to the right, or hold Shift and
    10·1 answer
  • What Are the main reasons students take the SAT/ACT?
    15·1 answer
  • Which of the following statements will assign the contents of the Text property of a Textbox control named txtInput into the Tex
    10·1 answer
  • Explain the following terms:<br><br> a) Atomicity<br><br> b) DML
    12·1 answer
  • Would you expect all the devices listed in bios setup to also be listed in device manager? would you expect all devices listed i
    7·1 answer
  • Write an if-else statement with multiple branches. If givenYear is 2101 or greater, print "Distant future" (without quotes). Els
    9·1 answer
  • Which of the following is the most significant outcome of the formation of the SMPTE?
    6·2 answers
  • If you have a slow computer and add a lot of filters what might hapopen'
    12·2 answers
  • Write an if statement that prints the message ""The number is not valid"" if the variable distance is outside the range 100 thr
    8·1 answer
  • Which of the following is not a benefit provided by a stakeholder analysis document
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!