Given storeMonthlySales NUM STOREST[NUM MONTHST[NUM DEPTS] is a three-dimensional array of floating point values. Write a C++ function, printMonthlySales, to calculate and print the total value of sales during a specific month by each department and in each store plus totals by store and department and overall sales. The return type of the function is void and the function must have 2 input parameters Sales array and the month the user specified (edit for correct month values!). The constants NUM STORES, NUM_MONTHS, and NUM_DEPTS must be accessed globally by defining the following global variables #define NUM DEPTS 2 #define NUM STORES 2 #define NUM-MONTHS 12 or const int NUM-MONTHS-12; or const in NUM_DEPTS 2; or const int NUM_STORES 2; The array Sales is initialized by the following statement within main() float storeMonthlySales[NUM STOREST[NUM MONTHS1[NUM DEPTS]- 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1,3.2, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 2.1, 2.2,2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2 Output: Sales for month of value (where value represents "January", "March", etc.) Dept # value value col value sum Dept # Store Total Store # value row value sum tore # value row value sum Dept Total col value sum total overall sales User enters a new month as many times as they wish and run printMonthlySales against the new month alue Validate user input ("y" or "n") when asking if the user wants to enter a new set of values

Answers

Answer 1

Answer:

Y

Explanation:

YEZ


Related Questions

1) An employer has decided to award a weekly pay raise to all employees by taking the square root of the difference between his weight and the employee’s weight. For instance, an employee who weighs 16 pounds less than the employer will get a $4 per week raise. The raise should be in whole dollars (an int). Write a class file that prompts the user for the employee and the employer weight. Please output the correct raise amount making sure that all inputs are included in the output statement.

Answers

Answer:

Written in C++

#include <iostream>

#include<cmath>

using namespace std;

int main(){

   int weight1, weight2, diff;

   cout<<"Employees Weight: ";

   cin>>weight1;

   cout<<"Employers Weight: ";

   cin>>weight2;

   diff = abs(weight1 - weight2);

   float pay = round(sqrt(diff));

   cout<<pay;

   return 0;

}

Explanation:

I've added the source file as an attachment where I used comments as explanation

In a singing competition, there are 34 more men than women
Find the number of women participants if the total number of
participants is 128.

Answers

Answer:

94 women are there

Explanation:

it is easy subtraction you only have to 128-34

Answer:

You have to start with 128 and then you subtract 34. Subtract them together and you get 94 participants. Isn't it that simple?

Which function prompts the user to enter information?

def main()
input()
int()
main()

Answers

Answer:

B. input()

Explanation:

Hope this helps :)

Answer:

Input()

Explanation:

So if you used process of elimination, you can see that def main() defines the start of the program and main() defines the end of the program. Also, int() is to solve without a decimal or special marking, therefore, input() would be the only reliable answer.

~i also got this correct on the test!~

I have to drag it to the correct definition plz help!

Answers

Answer:

Copyright - 1

Derivative works - 4

Intellectual property - 3

Fair use - 2

Explanation:

Use the drop-down menus to complete the statements explaining the creation and management of an outline in Word 2016. The Outline view allows a user to add, expand, and collapse content in the document. Headers can be promoted or demoted in the outline by using the directional arrows or . Level 1 headings will appear in the pane.

Answers

Answer:

Heading and subheading

shortcut keys

navigation

Explanation:

i got it wrong and it showed

Answer:

Use the drop-down menus to complete the statements explaining the creation and management of an outline in Word 2016.

The Outline view allows a user to add, expand, and collapse

✔ heading and subheading

content in the document.

Headers can be promoted or demoted in the outline by using the directional arrows or

✔ shortcut keys

.

Level 1 headings will appear in the

✔ Navigation

pane.

Explanation:

What if rulers appear on my screen?

Answers

Answer:

you can measure it,on word

Planned value:

How is it calculated?

Answers

Take the planned percentage of the completed work and multiply it by the project budget and you will get Planned Value.

which of the following best describes compounds.
A. They can only be separated chemically
b. they are always liquid at room temperature
c. they contain the atoms of just one element
d. they have the same properties as their elements

Answers

A. They can only be separate chemically

Answer:

A.

Explanation:

What is Chris Records LifePreneur Online Educational Training Program?

Answers

Answer:

LifePreneur stands for Lifesyle Entrepreneur. When you take the word lifestyle and entrepreneur to combine them together, you get the brand, LifePreneur. This is the concept behind Chris Record's LifePreneur company.

Lifepreneur is the long-awaited legacy project founded by online serial-entrepreneur Chris Record. Chris currently lives in scorching hot Las Vegas which is fitting because everything online he gets involved in goes big league. Chris has helped tens of thousands of people to start their own online business, and has a true passion for helping everyone succeed.

Lifepreneur is a membership program that you can join to get training in various aspects of online marketing, training and advice and investing, live in-person mentorship from Chris Record himself, and more. It is a membership program that you can sign up for free and it's designed to help you grow into more than just a business entrepreneur… A Lifepreneur.

More info : reddit's /r/LifePreneur

Which questions do you need to ask yourself when preparing for a presentation?​

Answers

Answer:

What do I want to transmit?

Why am I going to present this topic?

What is my believe about this topic?

Who am i going to speak to?

What do I need to work on to convey successfully the topic?(structure, tools, abilities, visual tools)

Explanation:

These are the most important questions, first of all because you have to start with why you are doing the presentation, and what will you do to make the presentation part of your beliefs.

Suppose you are purchasing something online on the Internet. At the website, you get a 10% discount if you are a member. Additionally, you are also getting a discount of 5% on the item because its Father's Day. Write a function that takes as input the cost of the item that you are purchasing and a Boolean variable indicating whether you are a member (or not), applies the discounts appropriately, and returns the final discounted value of the item. Note: The cost of the item need not be an integer

Answers

Answer:

The function is written in C++

void calc_discount(double amount,bool member)

{

 double discount;

 if(member)

 {

  discount = amount - 0.10 * amount - 0.05 * amount;

 }

 else

 {

  discount = amount - 0.05 * amount;

 }

 cout<<"Discount = "<<discount;

}

Explanation:

I've included the full source code (including the main method) as an attachment where I use comments as explanations

Which design principle involves mentally dividing up an image with two horizontal lines and two vertical lines

Answers

Answer:

the answer is Rule of thirds

Rule of thirds involves mentally dividing up an image with two horizontal lines and two vertical lines

The rule of thirds is a creation decide that places the subject in the left or right third of an image, leaving the other 66% more open. While there are various sorts of synthesis, the norm of thirds all around prompts persuading and particularly made shots. The Rule of Thirds puts your subject on the left-third or right-third of the edge, making a delightful synthesis.

Rule of thirds involves mentally dividing up an image with two horizontal lines and two vertical lines.

For more information:

https://brainly.com/question/18964599?referrer=searchResults

What is a class in CSS?
A.a grouping of HTML tags for which style properties can be declared
B.a selector used to define a unique style
C.a tag used to apply styles to a block of content
D.the part of a declaration describing the type of style to be applied

Answers

I think is B not positively sure tho

Answer:

A grouping of HTML tags for which style properties can be declared

Explanation:

CORRECT

If the VLOOKUP function is used to find an approximate match, what will it return if there is no exact match?
the largest value in the table
the smallest value in the table
O the largest value that is less than the lookup value
the smallest value that is greater than the lookup value

Answers

Answer:

Its C

Explanation:

The largest value that is less then the lookup value

Is a i5 2400 and a GeForce GTX 1060 6GB bottlenecking?

Answers

Answer:

In terms of memory, the GTX 1060 6GB 's 6144 MB RAM is more than enough for modern games and should not cause any bottlenecks. This combination between GTX 1060 6GB and Intel Core i5-2400  3.10GHz has less than 15% bottleneck in many games and can cause minor FPS loss.

Explanation:

i wish i had one of these lol

Answer:

Yes very Much

Explanation:

Please No

What is this tool called?
*

Answers

Answer:

what tool?

Explanation:

It’s called a asterisk in math it’s also used for multiplication

What was the biggest problem with the earliest version of the internet in the late 1960’s?

Answers

Networks couldn't talk to each other. The TCP/IP protocol could only be used in universities, governments, and businesses.

Answer:

Google didn't exist

Explanation:

Google was born in 1998 so a bunch of things were a problem

Create a Python file named num_sum.py that contains: The definition of two functions: volume - accepts three parameters and returns the product of them, but displays nothing sum_of_nums - accepts 1 or more numbers and returns their sum, but displays nothing A print function call that includes a call to volume, passing 2, 3, and 4 A print function call that includes a call to sum_of_nums, passing 1, 2, 3, 4, and 5 Submit the Python program and screenshot. Following is an example showing how your screenshot might look:

Answers

Answer:

def volume(n1, n2, n3):

   product = n1 * n2 * n3

   return product

   

def sum_of_nums(*args):

   total = 0

   for n in args:

       total += n

       

   return total

   

print("The product: " + str(volume(2, 3, 4)))

print("The sum: " + str(sum_of_nums(1, 2, 3, 4, 5)))

Explanation:

Create a function called volume that takes three parameters, n1, n2, n3

Multiply the n1, n2, n3 and set it to product

Return the product

Create a function called sum_of_nums that takes *args as parameter (Since the function may take one or more arguments, we may use *args)

Initialize the total as 0

Create a for loop that iterate through args. Add each number to the total (cumulative sum)

When the loop is done, return the total

Call the functions with given numbers and print the results

*See the output in the attachment.

Choose the words that make the statement true. You wrote a program called firstProgram.

Your program is _____.

O always running in the background

O stored until you open the file

Answers

Answer:

Stored until you open the file

Explanation:

Your program is stored until you open the file.

-edge 2022

You wrote a program called first Program. Your program is stored until you open the file. The second option is correct.

What is program?

A program is made from code of instructions. A program is saved for later use.

When a program is opened, it is in running condition until it is closed. But when it is not in use, it gets stored at a location for next use.

You wrote a program called first Program. Your program is stored until you open the file.

Thus, the second option is correct.

Learn more about program.

https://brainly.com/question/3224396

#SPJ2

100 POINTS!!!
Suppose a program requires a password that is a combination of numbers and letters but is not key sensitive. However, the user input is received as a string with letters that can have arbitrary cases. What code can be used to validate user input, u_pass, against the actual password, a_pass?

u_pass.upper() == str(a_pass).upper()
u_pass == a_pass
u_pass == str(a_pass)
u_pass is a_pass

Answers

The code that can be used to validate user input, u_pass, against the actual password, a_pass is u_pass.upper() == str(a_pass).upper().

How do one validate user input?

The act of input validation is  also called data validation. This is said to be  the right testing of any input that has been supplied by a user or application.

Conclusively, In  Input validation, there is prevention in term of improperly formed data from entering into the information system.

Learn more about coding from

https://brainly.com/question/22654163

Which of the following is a sign you may be drowsy behind the wheel?
A. Jitteriness
B. Happiness
C. Unhappiness
D. Irritability

Answers

The sign that you may be drowsy behind the wheel is Unhappiness. The correct option is C.

What are feelings?

Feelings and emotions vary fundamentally in that feelings are experienced consciously, whereas emotions manifest either consciously or subconsciously.

Some people may go years, if not a lifetime, without comprehending the depths of their feelings. Drowsiness encompasses symptoms such as tiredness, inability to keep busy, feeling uninteresting, and the absence of happiness.

Therefore, the correct option is C. Unhappiness.

To learn more about feelings, refer to the link:

https://brainly.com/question/13044426

#SPJ1

What does binary mean?
Os and 1s
O Decimals
O Digital
O User data

Answers

Answer:

0s and 1s

Explanation:

Answer:

0s and 1s

Explanation: when you talk about binary codes you are talking about the codes made up of 1s and 0s

Which shortcut key aligns text to the center of a page?
O Ctrl+C
O Ctrl+Shift+C
O Shift+C.
O Ctrl+E

Answers

Option D, Ctrl + E aligns text to centre

it is Ctrl+E it’s the shortcut key that aligns text to the center of a page.

This Operating System was basically an upgrade to Windows 98 and was designed for home users. 1) Windows ME 2) Windows 2K 3) Windows 2000 4) Windows New Technology

Answers

the answer is windows2k3 hope this helps!

how do you write 4 copies of 3 tenths in standard form

Answers

Answer:

four copies of three tenths

Explanation

just like you did it but its all in words

four copies of three tenths

just right it out

Suppose a linked list of 20 nodes. The middle node has a data –250. Write the pseudocode to replace the middle node of the linked list with a new node and new data. Assume that the list's head pointer is called head_ptr and the data for the new node is called entry.

Answers

Answer:

The middle node has a data –250. ... Write The Pseudocode To Replace The Middle Node Of The Linked List With ... Assume That The List's Head Pointer Is Called Head_ptr And The Data For The New Node Is Called Entry ... Assume that the list's head pointer is called head_ptr and the data for the new node is called entry ...

Explanation:

Write a java program that accepts the ingredients for a recipe in cups and converts to ounces

Answers

Answer:

Explanation:

public static int cupsToOunces (int cups) {

   

       int ounces = cups * 8;

       return ounces;

       

   }

This is a very simple Java method that takes in the number of cups in the recipe as a parameter, converts it to ounces, and then returns the number of ounces. It is very simple since 1 cup is equal to 8 ounces, therefore it simply takes the cups and multiplies it by 8 and saves that value in an int variable called ounces.

Write a program that calculates and displays the amount ofmoney available in a bank account that initially has $8000 deposited in it and that earns interest atthe rate of 2.5 percent a year. Your program should display the amount available at the end of eachyear for a period of 10 years. Use the relationship that the money available at the end of each yearequals the amount of money in the account at the start of the year plus 0.025 times the amountavailable at the start of the year [20 points].

Answers

Answer:

Written in Python

import math

principal = 8000

rate = 0.025

for i in range(1, 11):

    amount = principal + principal * rate

    principal = amount

    print("Year "+str(i)+": "+str(round(amount,2)))

Explanation:

This line imports math library

import math

This line initializes principal amount to 8000

principal = 8000

This line initializes rate to 0.025

rate = 0.025

The following is an iteration from year 1 to 10

for i in range(1, 11):

    This calculates the amount at the end of the year

    amount = principal + principal * rate

    This calculates the amount at the beginning of the next year

    principal = amount

    This prints the calculated amount

    print("Year "+str(i)+": "+str(round(amount,2)))

Mrs Jones had p hens then she decided to buy p more hens. how many hens does she have in all?​

Answers

Answer:

2p

Explanation:

if she had p, then she got p again, she got two p amounts. p+p = p*2 = 2p

Please help!!! best answer will be marked brainlieist, 7 pts!

Which of the following is NOT a required part of a network?


a node

an interconnector

a pointer

packets

Answers

Answer:

i think is packets

Packets
It doesn’t make sense
Other Questions
Addison pays $36 for a 12-month magazine subscription. How much does Addison pay per month? what was promised for slaves that encouraged them to fight for the BritishA.educationB. freedomC.moneyD.landwhich of the following is a reason why more then 5,000 blacks fought on the American side during the revolutionary WarA. they were promised land and moneyB.they believed George III would give them their freedom C. They believed in the words of the declaration of independenceD. those who were slaves would be able to rebel against their ownerswhich commander turned a group of American recruits into skilled soldiersA. John HancockB. Baron Friedrich Von SteubenC. Marquis De LafayetteD. Haym Salomonwhich commander became a general on George Washingtons staffA.John HancockB. Haym SalomonC. Marquis De LafayetteD. Baron Friedrich Von Steuben The ratio of the lengths of __ and __ is 2 : 1. Question is in the pictureYou will get 15 points and I will mark you brainliest I Need an answer asap The international community responded to human rights abuses in SouthAfrica by: Which alternating generation is pictured below?(The image shows a fern plant) Spores Gametophyte Sporophyte Gametes Pls help Im stressing ??!! The part of cellular respiration in which glucose breaks down is referred to as Percent decrease from 275 to 242 Write the equation for a line in slope intercept form that is parallel to the line 2x + 3y = 6 and passes through the point (0, 4). Are the figures similar? Which of the following BEST explains the reason for the Sunni/Shi'a split in Islam? -14+8 I also need to explain it to How is the wolf an effective predator? WORTH A BRAINLIEST IF GET CORRECT SHOULD BE EASY FOR SOME How was Anne Hutchinson punished by the government of the Massachusetts Bay Colony in 1638?O She was banished to England.O She was banished to Rhode Island.O She was forced to join the colony's church.O She was tried and executed. Summarize the impact of 9/11 on the Arab American Population in the US? true or false Impulse is defined as the force exerted on an object times the time it lasts. what i do wrong????? Fill in the blank in the following sentence with the appropriate article below. Mi perro es ______ ms rpido del parque.A. ElB. lC. LeD. La