Accumulating Totals in Single- Level Control Break Programs Summary In this lab , you will use what you have learned about accumulating totals in a single - level control break program to complete a C++ program . The program should produce a report for a supermarket manager to help her keep track of the hours worked by her part- time employees . The report should include the day of the week and the total hours worked by all employees each day . The student file provided for this lab includes the necessary variable declarations and input and output statements . You need to implement the code that recognizes when a control break should occur . You also need to complete the control break code . Be sure to accumulate the daily totals for all days in the week . Comments in the code tell you where to write your code .

Instructions 1. Study the prewritten code to understand what has already been done . 2. Write the control break code , including the code for the dayChange () function , in the main (function . 3. Execute the program by clicking the Run button at the bottom of the screen . Use the following input values : Monday - 6 hours ( employee 1) Tuesday - 2 hours (employee 1 ), 3 hours ( employee 2) Wednesday - 5 hours (employee 1 ), 3 hours (employee 2 ) Thursday -6 hours (employee 1 ) Friday - 3 hours ( employee 1), 5 hours ( employee 2) Saturday - 7 hours (employee 1 ), 7 hours (employee 2) , 7 hours ( employee 3) Sunday hours

1 // SuperMarket. cpp - This program creates a report that lists weekly hours worked
2 // by employees of a supermarket. The report lists total hours for
3 // each day of one week
4 // Input:
Interactive
5 // Output: Report.
6
7 #include
8 #include
8 #include
8 #include dayOfWeek;
if (day0fWeek
== SENTINEL)
notDone = false;
else
{
cout <‹ "Enter hours worked: cin >> hoursWorked;
prevDay = dayOfWeek;
}
while(notDone == true)
// Implement control break logic here
// Include work done in the dayChange () function
cout <‹ "\t\t" << DAY_FOOTER <‹ hoursTotal <‹ endl;
return 0;

Answers

Answer 1
Based on the provided code snippet, it seems that the instructions and implementation details of a C++ program are missing. It appears to be an incomplete code snippet with placeholders for implementing control break logic and the dayChange() function.

To complete the program, you would need to carefully study the prewritten code, understand the requirements and control break conditions, and then write the missing parts as instructed. This includes implementing the control break logic and completing the dayChange() function.

Related Questions

true or false? excel can be used to analyze information in a variety of different ways

Answers

Answer: True!

Explanation: Excel can be used to analyze information in a variety of different ways.

Once a customer orders a burger they are prompted on the order screen to select which of three condiments and one to the sandwich which quality of automation is being performed here

Answers

Answer:

The quality of automation being performed here is the process of decision-making or selection based on predefined options. In this case, the customer is prompted to select from a set of three condiments and one type of sandwich, which are predefined options. This process is automated as the customer is presented with a screen with the options to select from, which is pre-programmed and does not require any manual intervention from a human. This helps to streamline the ordering process and reduce errors by providing a set of standardized options for customers to choose from.

The internet was originally intended to be a U.S department of defense communication network that could withstand a nuclear war true or false

Answers

True. The internet was originally intended to be a U.S department of defense communication network that could withstand a nuclear war .

The internet was originally developed as a U.S. Department of Defense communication network called ARPANET (Advanced Research Projects Agency Network). The project was initiated in the late 1960s by the U.S. Department of Defense's Defense Advanced Research Projects Agency (DARPA). Its purpose was to create a robust and decentralized network that could withstand disruptions, including the potential destruction of communication infrastructure during a nuclear war.The design of ARPANET aimed to create a network that could survive damage to its nodes, reroute information through alternative pathways, and maintain connectivity even if certain parts of the network were destroyed. This decentralized structure, with multiple interconnected nodes, allowed for the sharing of information and resources in a resilient manner.While the original motivation for the development of ARPANET was defense-related, its subsequent evolution and widespread adoption transformed it into the global network we know today as the internet. The internet now serves a variety of purposes beyond military communication, connecting people and facilitating information exchange on a global scale.

The statement is true.

For more such questions on Internet

https://brainly.com/question/21527655

#SPJ8

create a questionnaire to gain information about one emerging technology of your choice. you could choose from several options, such as cloud computing, pervasive computing, wearable computing, artificial intelligence, and other technologies.

Answers

Sure! Let’s create a questionnaire to gain information about Artificial Intelligence (AI):

1. What is your familiarity with Artificial Intelligence (AI)?
a) Very familiar
b) Somewhat familiar
c) Not familiar at all
2. Have you personally used or interacted with any AI-powered technologies or applications?
a) Yes
b) No
3. Which of the following areas do you think AI has the most significant impact on? (Select all that apply)
a) Healthcare
b) Finance
c) Transportation
d) Education
e) Retail
f) Other (please specify)
4. In your opinion, what are the main advantages of AI technology? (Select all that apply)
a) Improved efficiency and productivity
b) Enhanced decision-making capabilities
c) Automation of repetitive tasks
d) Advanced data analysis and insights
e) Improved customer experience
f) Other (please specify)
5. Are you concerned about the ethical implications of AI technology? Why or why not?
6. How do you see AI impacting the job market and employment opportunities in the future?
7. What are your thoughts on the potential risks and challenges associated with AI implementation?
8. Have you encountered any AI applications or technologies that you believe need improvement or further development? If yes, please provide details.
9. Are you aware of any regulatory or legal frameworks in place to govern AI technology? If yes, please share your knowledge on this topic.
10. In your opinion, what are the key areas where AI technology should be further explored or expanded?
11. Are you personally excited about the future prospects and advancements of AI technology? Why or why not?
12. Would you be open to using AI-powered products or services in your personal or professional life? Why or why not?

Need help with this python question I’m stuck

Answers

It should be noted that the program based on the information is given below

How to depict the program

def classify_interstate_highway(highway_number):

 """Classifies an interstate highway as primary or auxiliary, and if auxiliary, indicates what primary highway it serves. Also indicates if the (primary) highway runs north/south or east/west.

 Args:

   highway_number: The number of the interstate highway.

 Returns:

   A tuple of three elements:

   * The type of the highway ('primary' or 'auxiliary').

   * If the highway is auxiliary, the number of the primary highway it serves.

   * The direction of travel of the primary highway ('north/south' or 'east/west').

 Raises:

   ValueError: If the highway number is not a valid interstate highway number.

 """

 if not isinstance(highway_number, int):

   raise ValueError('highway_number must be an integer')

 if highway_number < 1 or highway_number > 999:

   raise ValueError('highway_number must be between 1 and 999')

 if highway_number < 100:

   type_ = 'primary'

   direction = 'north/south' if highway_number % 2 == 1 else 'east/west'

 else:

   type_ = 'auxiliary'

   primary_number = highway_number % 100

   direction = 'north/south' if primary_number % 2 == 1 else 'east/west'

 return type_, primary_number, direction

def main():

 highway_number = input('Enter an interstate highway number: ')

 type_, primary_number, direction = classify_interstate_highway(highway_number)

 print('I-{} is {}'.format(highway_number, type_))

 if type_ == 'auxiliary':

   print('It serves I-{}'.format(primary_number))

 print('It runs {}'.format(direction))

if __name__ == '__main__':

 main()

Learn more about program on

https://brainly.com/question/26642771

#SPJ1

In the context of marketing, which of the following is the best example of risk taking?

Answers

In the realm of computer and technology marketing, a notable example of risk-taking would be a company introducing a groundbreaking, untested product that defies industry norms. For instance, imagine a computer manufacturer unveiling a radically innovative device that incorporates cutting-edge features, such as holographic displays, neural interface controls, and advanced artificial intelligence integration. This bold move would not only disrupt the market but also captivate tech enthusiasts and early adopters, igniting intrigue and curiosity. By challenging conventional boundaries, embracing novel technologies, and venturing into uncharted territory, the company showcases its willingness to take risks and push the boundaries of what is considered possible in the field of computers and technology.

Question 6 (1 point)
Janelle is creating a model of a bathroom in Blender. She is currently working on the
tile pattern for the walls of the shower. She has decided on a hexagonal shape
surrounded by four squares. Since this pattern will be repeated over the entire
shower wall, which of the following modifiers should she use to create enough
copies of it to populate the entire area?
Boolean
Bevel
Array
Screw

Answers

To create enough copies of the tile pattern to populate the entire area of the shower wall in Blender, Janelle should use the C) Array modifier.

The Array modifier in Blender allows for the creation of multiple copies or instances of an object, arranged in a specified pattern.

It is particularly useful when creating repetitive patterns, as in the case of the tile pattern for the shower walls.

By applying the Array modifier to the initial tile pattern, Janelle can define the number of copies to be made and the desired spacing or offset between them.

She can configure the modifier to create a grid-like arrangement of the tiles, allowing her to cover the entire area of the shower wall seamlessly.

The Array modifier offers flexibility in terms of adjusting the pattern's size, rotation, and other parameters to achieve the desired look.

Additionally, any changes made to the original tile will be automatically propagated to all the instances created by the modifier, streamlining the editing process.

While the other modifiers mentioned—Boolean, Bevel, and Screw—have their own specific uses, they are not suitable for creating multiple copies of a tile pattern.

The Boolean modifier is used for combining or cutting shapes, Bevel for adding rounded edges, and Screw for creating spiral or helix shapes.

For more questions on Array

https://brainly.com/question/29989214

#SPJ8


the key feature of jacquard -punch card​

Answers

Explanation:

The Jacquard Loom is controlled by a chain of multiple cards punched with holes that determine which cords of the fabric warp should be raised for each pass of the shuttle. The ability to store and automatically reproduce complex operations found wide application in textile manufacturing.

The way text appear is called its

Answers

Answer:

the way the text appear is called it's formatting

BIUX
Type your answer here
E
What does self-regulation look like for you? What are times that you've been successf
skill? (50 word minimum)

Answers

Self-regulation for me involves being aware of and managing my thoughts, emotions, and behaviors in a way that promotes my overall well-being and success. Successful instances of self-regulation include maintaining focus and productivity during challenging tasks, managing stress effectively, and making healthy choices in terms of diet, exercise, and sleep. Regular reflection, mindfulness practices, and setting clear goals help me maintain self-regulation.

Heads of dod components are responsible for establishing component specific procedures regarding transmission and transportation of classified material. What items must be considered when establishing these procedures?

Answers

When establishing procedures for the transmission and transportation of classified material, heads of DoD components must consider factors such as security protocols, encryption methods, authorized means of transport, personnel access controls, handling and storage guidelines, and adherence to classification guidelines and regulations.

Security Protocols: Ensure that appropriate security protocols are in place to safeguard the classified material during transmission and transportation.Encryption Methods: Implement secure encryption methods to protect the confidentiality and integrity of the classified material during transit.Authorized Means of Transport: Determine the approved methods of transport, such as secure courier services or encrypted electronic channels, that can be used for transmitting classified material.Personnel Access Controls: Establish strict access controls to restrict access to the classified material during transmission and transportation. This may involve authentication measures, background checks, and need-to-know requirements.Handling and Storage Guidelines: Define guidelines for how the classified material should be handled, packaged, and stored to prevent unauthorized access or loss during transit.Classification Guidelines and Regulations: Ensure compliance with classification guidelines and regulations, including marking, labeling, and packaging requirements for different levels of classified material.

By considering these items, heads of DoD components can establish comprehensive and effective procedures to ensure the secure transmission and transportation of classified material.

For more such question on transportation

https://brainly.com/question/28206353

#SPJ8

The direct approach for bad news messages is best used when the message is complex

Question 6 options:
True
False

Answers

The direct approach for bad news messages is not typically best used when the message is complex. The direct approach is characterized by delivering the bad news straightforwardly and without extensive elaboration. It is more suitable for messages that are simple and do not require much explanation or justification.justification.So , the right answer is 'false'.

When the message is complex, it is often beneficial to use the indirect approach.

This approach involves providing context, explaining the reasons behind the decision, and presenting the bad news in a more cushioned manner. It allows the recipient to better understand the situation and rationale behind the decision, minimizing potential negative reactions.Using the indirect approach for complex messages allows for a more nuanced communication style, giving the recipient the opportunity to process the information and potentially seek further clarification. It helps maintain a positive relationship between the sender and recipient, as it demonstrates empathy and understanding of the recipient's perspective.

The right answer For 'false'

For more such question on Bad news messages

https://brainly.com/question/15110535

#SPJ8

TO EXIT WORD YOU CLICK WHAT

Answers

File > Close
(Or the X in the corner?)

Answer:

To exit Word, you can click on the "File" menu and then click "Exit" or "Close".

A database for a library must support the following requirements. For each library clerk store the clerk number, first name, surname and contact number. For each book store its title, first author, second author, isbn number, year published and no of copies. For each client store the first name, last name and contact number. The database should keep track of which client has which book and which clerk issued the book. A client can borrow any number of books. 3.1 Represent your design using an E-R diagram​

Answers

The E-R diagram for the library database includes three main entities: Clerk, Book, and Client.

What are the attributes?

The Clerk entity has attributes such as Clerk Number, First Name, Surname, and Contact Number.

The Book entity includes attributes like Title, First Author, Second Author, ISBN Number, Year Published, and Number of Copies.

The Client entity has attributes such as First Name, Last Name, and Contact Number.

To establish relationships, the diagram includes two additional relationships. First, the Borrow relationship connects Client and Book, indicating which client has borrowed which book. Second, the Issue relationship connects Clerk and Book, indicating which clerk issued the book.

Overall, the diagram represents the structure and connections of the library database in a concise manner.

Read more about database here:

https://brainly.com/question/518894

#SPJ1

Other Questions
Employee Benefits and Compensation Jan22 Y3 S2 Zanele and Pravesh are sales consultants at Mzansi Furniture, selling office furniture to various clients. They are each paid a salary of R20,000 per month, regardless of the value of the sales that they make within a particular month. Zanele and Pravesh are upset, as they do not believe the process for determining their monthly salary is fair. They argue that their monthly pay should not be a set salary but should rather be dependent on their performance and the value of the sales they make within each particular month. This is an example of equity. A. external B. internal C. individual D. procedural A reinforced concrete beam 20 mm x 200 mm with tensile reinforcement of 3-28 mm phi is simply supported over a span of 5.5m. Using steel covering of 75 mm, concrete strength is 20.7 MPa and yield steel strength of re-bars is 280 MPa. Determine the moment capacity of the beam and describe the mode of the design. Which statement is true about the diagram?DEF is a right angle.mDEA = mFECBEA BECRay E B bisects AEF. Tyrone places a carton of milk and a box of cookies together. The carton of milk has a length of 6 inches, a width of 4 inches, and a height of 8 inches. The box of cookies has a length of 5 inches, a width of 4 inches, and a height of 2 inches. What is the combined volume of the boxes? The difference between the benefits that the customer gains from owning andiar using a product and the costs of obla/sing the product. Select one: True False The Technical Account Manager is irvolved in marketing analysis, planning, implementation, and control activities. Select one: False Marketing offerings include: 1. Tangible and intangible Products 2. Services 3. Experience Select one: True False What are examples of ONLINE Marketing (4 out of 5 ). Select one or more: a. Blogging b. Social Media c. Webinar d. Cold Callings e. Email 3. Solve the following system of equations: Vir - 2ary + s 14 - Tatry - Bar - 7+lling + 180g 12 17 Given that the coefficient matrix factors as T 1 001 HT 2 ID - 11 IN . :) Which element is included in an organization's internal environment? government suppliers customers employees How can unethical behavior grow rapidly in a company with good people and good intentions? Some companies hire bad people who make a company bad or unethical. Good companies with good employees are never unethical. Companies with strong leadership can become unethical If leaders fail. Small white lies to help a company can rapidly escalate to bigger lies that get out of control. Write C# windows form program to determine the cost of an automobile insurance premium, based ondriver's age and the number of accidents that the driver has had.The basic insurance charge is 500 SR. There is a surcharge (extra charge) of 100 SR if the driver is under24 and an additional surcharge for accidents:Number of accidents Accident Surcharge1 502 1253-4 2255 or more No insuranceExample:Suppose the user is 21 years old and he/she made 2 accidents. Then, the insuranceCost = 500 + 100+ 125 = 725 SR.The form must contain the following toolboxes:Field Name Toolbox ConstraintsFull name Textbox doesn't accept numbersGender Radio Button Female is default valueAge Combobox - The user can select the age in range from 17-70 years- Default value is 20Number of accidents 4 Check boxes - Choices are shown in the above table.Accident Surcharge 4 Labels - Default value is 1insurance cost Label or textbox Display the insurance cost after clicking calculate buttonCalculate Button -Calculate the insurance cost-All values must be stored in variables.Reset Button Clear all toolboxesExit Button Close the Form The child- to -woman ratioa) underestimates fertilityb) overestimates fertilityc) is equal to fertilityd) is equal to fecunditye) none of the above Question 5 Identify the specific fallacy if there is one: Feathers are light. What is light cannot be dark. Therefore, feathers are not dark. Ostraw man O appeal to authority O uivocation ad hominem O appeal to ignorance O no fallacy Question 6 1 pts Determine which of the following fallacies applies to the example, if any: I don't think it's a good idea to lower the drinking age. Next thing we know kids will get to drive at age ten, and vote at fifteen. Let kids be kids and adults be adults. O false dilemma O begging the question O slippery slope fallacy O appeal to authority O golden mean fallacy Onone of the above Identify Muslim Americans. How are Muslim Americans andArab Americans treated by the major political parties? Java IO and JavaFX An odd number is defined as any integer that cannot be divided exactly by two (2). In other words, if you divide the number by two, you will get a result which has a remainder or a fraction. Examples of odd numbers are 5,3,7,9,11 and 23 . Question 4 Write a Java program in NetBeans that writes the first four hundred odd numbers (counting from 0 upwards) to a file. The program should then read these numbers from this file and display them to a JavaFX or Swing GUI interface. How much energy is needed to desalt 1kg of seawater In a certain version of Linux filesystem's inode, a pointer to a 4KB chunk of data or pointers) takes 2 bytes or 8 bits. What would be the contribution in file storage of the 14th pointer in this file system? Sea water (SG=1.03) is flowing at 13160 gpm through a turbine in a hydroelectric plant. The turbine is to supply 680 hp to another system. If the mechanical efficiency is 69%, find the head acting on the turbine. What property does the shortest paths problem have that enables us to apply both greedy algorithms and dynamic programming? A. memoized recursion B. optimal substructure C. overlapping subproblems D. divide and conquer LUCOSE, AMINO ACID, CONSTI The end product of digestion of carbohydrate is Anything that we eat or drink is called The end product of digestion of protein is Result of taking huge amount of food Difficult in emptying the bowel Malik is baking pumpkin bread and banana bread for friends and family. His pumpkin bread recipe calls for 4 eggs and 312 cups of flour, and his banana bread recipe calls for 1 egg and 112 cups of flour. Malik has 14 eggs, 16 cups of flour, and plenty of other ingredients to make multiple loaves.What is one combination of breads Malik can bake without getting more ingredients? Question 10 (2 points) Listen A concave mirror has a focal length of 15 cm. An object 1.8 cm high is placed 22 cm from the mirror. The image description is and Oreal; upright virtual; upright virtual; inverted real; inverted Question 11 (2 points) Listen Which one of the following statements is not a characteristic of a plane mirror? The image is real. The magnification is +1. The image is always upright. The image is reversed right to left. Evaluate the benefits of management accounting echniques in supporting financial decision making to ensure Long term financial stability