Questions
use c++ language. Create a structure called time. Its three members, all type int, should be...

use c++ language. Create a structure called time. Its three members, all type int, should be called hours, minutes, and seconds. Write a program that prompts the user to enter a time value in hours, minutes, and seconds. This should be in 12:59:59 format. This entire input should be assigned first to a string variable. Then the string should be tokenized thereby assigning the 1st token to hours, 2nd token to minutes, and 3rd token to seconds member variables of the structure called time. Finally inside a void Print_in_Seconds(void) member function of time structure, it should print out the total number of seconds represented by this time value: long totalsecs = t1.hours*3600 + t1.minutes*60 + t1.seconds

comment your code properly. do not use vectors

before coding explain it in simple words and use your own logic

In: Computer Science

Bandura (1998) argues that “the quality of health of a nation is a social matter not...

Bandura (1998) argues that “the quality of health of a nation is a social matter not just a personal one,” (p.644), and he suggests that “if we are to contribute significantly to the betterment of human health we must broaden our perspective on health promotion and disease prevention beyond the individualistic level,” (p.647). Do you agree with his argument, and do you think his charge to health educators is feasible? Why or why not?

Please choose and respond to 3 of the following:

Use constructs from Social Cognitive Theory to explain why some can overcome great odds to change lives and behaviors, while others, apparently similar, are “stuck” and cannot change? What makes the difference?

1. How do cults and gangs use moral disengagement to change members’ behaviors, often in a negative manner?

2. Health educators can be mentors or advisors for behavior changes such as tobacco cessation or weight control, but think how this affects long-term change and maintenance. What are some strategies for improving maintenance of desirable behavior change?

3. Do professional helpers need to be part of the same social network as those they help, to be effective? Why or why not?

4. How have new technologies such as the Internet increased social networks? What are the benefits and hazards? Compare this to time when the telephone was a new technology and how it increased social networks. How do you think technology will expand again: what will next increase social networks?

In: Psychology

how many 1/2 teaspoons of salt will dissolve in 1/2 cup room temp. water and how...

how many 1/2 teaspoons of salt will dissolve in 1/2 cup room temp. water and how many in boiling water and why?

In: Chemistry

Media and technology play a huge role in contemporary society. From the way we communicate, how...

Media and technology play a huge role in contemporary society. From the way we communicate, how we receive information, even subtle day to day activities are greatly influenced by media and technology. The advance of technological innovations uplifts societies, but can also be detrimental. For example, the automation of the American workforce. Just like many other things in our society, it has both positive and negative effects.

* First, identify a source of media – newspaper, magazines, television, social media, etc.

* then detail the positive and negative aspects of the source of media you have chosen.

* Secondly, give special consideration to how this form of media has influenced society and how it has affected the way people think, interact, or communicate with one another.

* Lastly, use the Functionalist, Conflict, or Interactionist perspective to analyze how the form of media you have chosen impacts society.

In: Psychology

Under EPA regulations, chemical waste that possesses at least one of four defined characteristics is classified...

Under EPA regulations, chemical waste that possesses at least one of four defined characteristics is classified as hazardous waste. Which of the following is not one of the four characteristics of hazardous waste?

reactivity
corrosivity
volatility
toxicity

2.,
Many organic chemicals can oxidize during storage to form peroxides. What is the primary hazard associated with formation of peroxides?

The peroxides formed can become shock sensitive if present in sufficient concentrations and may be an explosion hazard.
Increased flammability.
Increased risk of bladder cancer.
All of the above

3.

Which statement best describes the fire safety significance of the flash point of a liquid?

A lower flash point correlates to a higher fire hazard.
A lower flash point correlates to a lower fire hazard.
A chemical with a lower flash point is easier to extinguish than a chemical with a higher flash point.
The flash point of a liquid has no significance to fire safety.

Please give me answers!

In: Chemistry

What is linear regression forecasting? Illustrate a calculation for this method. When would linear regression be...

What is linear regression forecasting? Illustrate a calculation for this method. When would linear regression be preferred to the methods of moving average, weighted moving average, and exponential smoothing? How can one assess if there is a meaningful regression relationship?

In: Operations Management

prepare a presentation on the history of computers. There are 5 main steps of creating a...

prepare a presentation on the history of computers. There are 5 main steps of creating a presentation; Planning, Organizing and Composing, Preparing, Rehearsing, and finally presenting. prepare a brief presentation on the history of computers as you walk through these steps.

In: Computer Science

DESCRIPTION Create a program to calculate and print basic stats on a set of a given...

DESCRIPTION

Create a program to calculate and print basic stats on a set of a given input values representing students' scores on an exam.

1) Ask the user for the total number of exam scores to be input (assume a positive integer will be given).

2) Create an array to hold all the exam scores and then get all the scores from input to put into the array. For example, if the user input 10 in step (1) then you should create an array to hold 10 double values (each of the 10 exam scores) and ask the user for the 10 values, one-by-one, to put in each spot.

3) Calculate and print the average (mean) score.

4) Print out a table displaying the number of each letter grade in the set of scores. Assign grades of A for scores of 90 and above, B for scores of 80 and above (but below 90), C for scores of 70 and above (but below 80), D for scores of 60 and above (but below 70), and F for scores below 60.

Sample output of program:

How many exam scores?
10
Enter the 10 exam scores:
95.6
98
100
96
84.2
82
80
77
66
62.1
Average score: 84.09
Grade - Count:
A - 4
B - 3
C - 1
D - 2
F - 0

Starter Code:-

import java.util.Scanner;

public class ExamStats {
public static void main(String[] args) {
//TODO: Complete the program
  
}
}

In: Computer Science

write about any civic engagement and reflective assignment

write about any civic engagement and reflective assignment

In: Operations Management

How can monitoring support evaluations in criminal justice policies?

How can monitoring support evaluations in criminal justice policies?

In: Psychology

In Python For this programming assignment, we are going to investigate how much "work" different sorting...

In Python For this programming assignment, we are going to investigate how much "work" different sorting routines do, based on the input size and order of the data. We will record the work done by writing output CSV (comma separated value) files and creating various plots using matplotlib. Note: for this assignment, do not use Jupyter Notebook to code your solution. Use standard .py files and save your output to .csv and .png files (see the program details below for more on program output). Program Details: Data Structure Implement a doubly linked circular linked list of Node objects called CircularDoublyLinkedList. The data of each Node in the list is an integer. You will collect measurements for: An already sorted linked list An already sorted linked list in descending order A linked list containing random data List Size Configurations Generate each of the above linked lists with the following number of nodes: 500 1000 5000 10000 (more values if you wish) Note: Make copies of the original lists (as necessary) and pass the copies to each sorting routine so each routine is operating on the same data! This is important in order to compare the results of the different algorithms. Sorting Routines Implement 3 of the following linked list sorting routines (implemented as a function or as a method of your CircularDoublyLinkedList class): Choose 2 from the first 4 and 1 from the last 2 Selection sort Early exit bubble sort (stops when the list is sorted) Insertion sort Shell sort Merge sort Quick sort Data to Collect For each sorting routine above, create a pandas DataFrame with rows for each list size configuration and columns for each metric to collect. The metrics to collect include the algorithm's execution time using timeit and counts for the following operations: Number of data comparisons Number of loop control comparisons Number of assignment operations involving data Number of assignment operations involving loop control "Other" operations (operations that don't fall into one of the above categories) Total number of operations (sum of the above) Note: Be sure to comment everything you count in your code. Pictorially, here is an example DataFrame for a sorting routine: List configuration Seconds # Data # Loop # Data assignments # Loop assignments # Other Total Sorted N=500 Sorted N=1000 Sorted N=5000 Sorted N=10000 Descending sorted N=500 Descending sorted N=1000 Descending sorted N=5000 Descending sorted N=10000 Random N=500 Random N=1000 Random N=5000 Random N=10000 Program Output CSV Files Write the contents of each sorting routine DataFrame to a CSV file with a filename of the form _sort_results.csv. For example, bubble_sort_results.csv. See the function to_csv() in the pandas library for a straightforward way to do this! In total, your program should output 6 csv files, one for each sorting routine. Plots to Generate For each of the three list configurations (sorted, descending sorted, random), create two plots with list size on the x-axis (i.e. 500, 1000, 5000, 10000) and the following on the y-axis: Plot 1: running time Plot 2: total operation count Each plot should have a separate curve for each sorting routine. For example (example purposes only!!)

In: Computer Science

Frederick and Sons is a small company that makes faucets rings.   They have experienced a larger...

Frederick and Sons is a small company that makes faucets rings.   They have experienced a larger than normal bad debts due to the slowdown in the economy.  Koehler Corporation is a multimillion-dollar Corporation that makes faucets and other plumber supplies is also experiencing bad debt losses. What method would each company use when writing off customers’ accounts unable to pay and why?   Give an entry for each when actually writing off a customer’s account.

In: Accounting

Select all that hold true about Bloom Filters: Select one or more: A. Bloom Filter has...

Select all that hold true about Bloom Filters:

Select one or more:

A. Bloom Filter has a predictable false positive rate. (Incorrect choices are penalized)

B. The total storage required for a Bloom Filter is fixed to be mm bits, and this won't increase regardless of the number of values stored.

C. Each search operation can be processed in the order of O(n×k)O(n×k) by a Bloom Filter with  kk hash functions that already added  nn values.

D. Each search or insert operation only requires O(k)O(k) operations by a Bloom Filter with  kk hash functions and the cost does not depend on either the number of bits used by the Bloom Filter or nn, the number of values already added.

E. While the size of the bit array used by the Bloom Filter is constant, it may need to be quite large to reduce the false positive rate.

F. The Bloom Filter supports the following operations: add/insert the element, search the element, and remove the element.

G. While risking false positives, Bloom Filters have a strong space advantage over other data structures for representing sets, such as self-balancing binary search trees, tries, has tables, simple arrays or linked lists.

H. The Bloom Filter also stores the data items themselves that could be retrieved in O(k)O(k) time

In: Computer Science

Instructions Choose a product/service (not the same one you are using for the final project (marketing...

Instructions

Choose a product/service (not the same one you are using for the final project (marketing plan). Answer the following questions:

  1. Considering direct, online, social media and mobile marketing options, which 2 options do you feel would be the best to use in relation to the product/service you have chosen? Why?
  2. Describe the options you justified above and outline specific methods you would adopt in using those 2 options. Discuss specific uses, platforms, and messages you would ensure are marketed through these options.
  3. What one strategy could be adopted to create a competitive advantage for that product/service? Provide an analysis of this decision.

(For all dropbox assignments, remember to reference at least 2 sources; one must be the textbook plus one from a website, video, or other source. Use quotes for direct material taken and cite even if paraphrasing. )

In: Operations Management

What behaviors do Martin Luther king, Malcolm X and Nelson Mandela employ that make them competent...

What behaviors do Martin Luther king, Malcolm X and Nelson Mandela employ that make them competent and why?

Which of these could you adopt, and how would that help you to reach your communication goals more effectively?

In: Psychology