Questions
Design a complete program that asks the user to enter a series of 20 numbers. The...

Design a complete program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display each of the following data:

I. The lowest number in the array

II. The highest number in the array

III. The total of the numbers in the array

IV. The average of the numbers in the array

*PYTHON NOT PSUEDOCODE AND FLOW CHART!!!!*

In: Computer Science

Health Care Options, Inc. Health Care Options, Inc. (HCO) is a home-health care facility located in...

Health Care Options, Inc.

Health Care Options, Inc. (HCO) is a home-health care facility located in the heart of the Blue Ridge Mountains. It supports local residents within a 50-mile radius by providing home health care services that range from medication administration, catheterization, and wound dressing to bathing, dressing, and feeding. These services are administered by skilled nurses and home health aides who are employed by HCO. The management staff includes a receptionist, two co-owners/managers, and an accountant.

Patients receive services based upon a doctor’s written referral. Referrals consist of the type of care needed (i.e. skilled nursing or home health aide), the equipment needed to provide the services (i.e. albuterol and breathing apparatus for breathing treatments, syringes, catheters, etc.), and a description of the care needed (i.e. change wound bandages twice per week, provide baths every other day, etc.).   Payment for services can occur in one of four ways: Medicare Part B, Medicaid, private insurance, and private-pay.

In cases where Medicare or Medicaid is used, payment is received based upon a cost-reimbursement basis. This basis is calculated by determining total direct costs for all home visits, plus an allowable amount for overhead. Direct costs include both labor and inventory. Labor consists of a standard rate for a nurse or aide, depending on the services needed. A nurse currently has a standard cost of $150 per hour, while an aide has a standard cost of $47 per hour. Inventory is another direct cost. Inventory consists of items such as various types of syringes, gauze, catheters, etc. All inventory is currently provided by a single medical supplier, Blue Ridge Medical Supplies, which provides a list of all of its medical supplies and prices on a quarterly schedule. Prices are subject to change from quarter to quarter, and the company uses a weighted-average inventory method to keep track of the cost of inventory that is purchased and used.

Using the direct cost data that is accumulated throughout the year, HCO submits an annual cost report to its Medicare/Medicaid Intermediary on December 31. This cost report includes a total of direct costs as well as the indirect costs of the business. Indirect costs include salaries of staff personnel, rent, utilities, and other miscellaneous office supplies. Total direct costs and indirect costs are totaled in the annual cost report, and a per-patient cost reimbursement rate is determined by dividing the total costs (both direct and indirect) by the total number of patient visits. It is this cost-reimbursement rate that is billed to the Medicare/Medicaid home office when a home health care visit is incurred. Note that the direct costs that are accumulated and submitted within the cost report are only those costs associated with Medicare/Medicaid patients. Private pay and insurance patients are excluded from these calculations. Total indirect costs are included in the cost report submission as they cannot be directly traced to any individual patient or patient type.

For patients with insurance, a pre-determined rate per visit is negotiated with each insurance company. The rate-per-visit per insurance company is currently stored in an Excel spreadsheet. This rate per visit is based solely upon the skill level of the care provider. For instance, an RN has a skill level of 10, whereas an LPN has a skill level of 7, and an aide has a skill level of 3. An entry in the spreadsheet indicates that for All-Insurance (a local insurance company), any visit provided by a staff member with a skill level above 5 is reimbursed at a rate of $238 per visit, up to a maximum of 30 visits in a three-month period. Most other insurance companies also provide a rate for a range of skills levels up to a maximum number of visits within a given duration (usually in months). Once this maximum has been exceeded, a patient’s doctor must write a new referral.   This referral serves as the basis for a new contract between the patient and HCO.

Private pay patients are unique in that a different rate is negotiated with each patient. That is, a contract is signed with each patient that requires the patient to pay a certain amount for each home health care visit up to a maximum number of visits. This maximum number is also negotiated and included in the patient’s contract.

Contracts are required for every patient who receives services. Contracts include the type of services performed (i.e. wound dressings, bathing, etc.), the number of visits per week, the supplies used in the provision of these services, and the duration of services needed. Naturally, the contract includes the type of payment (Medicare, Medicaid, insurance, or private pay) to be used. Contracts are assigned start and end dates based on the terms of the referral, or in cases where the method of payment is insurance, the duration of the contract is the lesser of the term specified in the referral or the constraints of the insurance company. In most cases, doctors write referrals that are within the allowable duration that most insurance companies stipulate.

Scheduling is a major issue in home health care. It is important to match the needs of the patient with the skills of the nurse or aide. Additionally, the geographic location of the patient must match the geographic location of the nurse or aide providing the services. Currently, zipcode is used to match the locations of patients to their home health care providers. One additional component of the scheduling feature is the availability of the care providers. Some nurses and aides are available seven days per week, while others work a part-time schedule-- perhaps on Mondays, Wednesdays, and Fridays only. An important feature of scheduling is to match not only the skills and geographic locations of patients with providers, but also to match the availability of care providers with the frequency of visits needed by the patients. In cases where no match is found for a patient and provider based on these factors (geography and availability), notices are sent to the managers, who must individually assign nurses/aides who are outside of their geographic areas or days of availability. These exceptions are rare, but when they occur, management pays an additional stipend to its nurses/aides who must work outside of their locations and/or days available. No replacements are ever made when skill sets of providers do not match the needs of patients. In these circumstances, a patient’s doctor is immediately notified to allow the patient to receive in-hospital or rehabilitative care, and the existing contract is nullified. This situation only occurs when a nurse/aide who provides a specialized care subsequently leaves the company, and no other health care professionals are available with the same skill set in the company.

Phase I Deliverables:

1. ERD

For this phase, assume you are a member of a team of database and GUI developers/analysts. As a member of the database team, you are required to create an ER Diagram that will facilitate the development of Health Care Options’s company-wide database. It should be created using ER Assistant and include entities, attributes, and relationships.

The scope of the database includes all entities referenced above. The goal of this phase of development is to support a scheduling system that will replace the current spreadsheet process, but your database should be designed to support all of the company’s current and future needs.   Note that your team will not actually create the scheduling system. You are responsible only for designing the database that will be used by the system. Subsequent phases will include table design and broaden the scope to support billing and cost report compilation. Thus, plan and design your initial database carefully, as it will affect your future deliverables.

2. CREATE TABLE Statements

Based on your ERD design, in step 1, write and execute the CREATE TABLE statements for each of the tables. Be sure to create primary, foreign key, and NOT NULL constraints as appropriate.

To receive full credit for this assignment, all of your CREATE TABLE statements must be executed in MS SQL Server.

In addition to creating the tables, you must add at least 3 rows of data to each one. If there are any errors in your ERD, you will likely find them yourself at this point in the process and make any needed adjustments to your design. Remember, order matters when you are creating tables and loading data.

Finally, execute the following commands for each table and print out the results to show that you have successfully performed the CREATE TABLE step of this assignment and have populated the tables correctly.

In: Computer Science

In C++ using a single dimensional array Create a program that uses a for loop to...

In C++ using a single dimensional array

Create a program that uses a for loop to input the day, the high temperature, and low temperature for each day of the week. The day, high, and low will be placed into three elements of the array. For each loop the day, high, and low will be placed into the next set of elements of the array. After the days and temps for all seven days have been entered into the array, a for loop will be used to pull out the high and low temps and total them. After all temps have been totaled, the average high and low will be calculated. The totals and averages will be placed into the array. The output will display the following;

The total high temps is "total high"

The total low temps is "total low"

The average high temps is "average high"

The average low temps is "average low"

In: Computer Science

Evaluate (3b/2+c)*(6b-a) by writing the code in assembly. where a=2, b=3 and c=5. Write the equivalent...

  1. Evaluate (3b/2+c)*(6b-a) by writing the code in assembly.

where a=2, b=3 and c=5.

  1. Write the equivalent C++ code in assembly language.

if (bx<= ax) && ( cx > dx )

{

ax = 5;

dx = 6;

}

NOTE: Only use 16 bit or 8 bit registers like ax,bx,cx,dx or al,bl,cl,dl. You can either do this using loop statement or conditional or unconditional jmps in assembly language. Keep the code as simple as possible. For question you need to use cmp in assembly language to compare the values. You need to ask from the user the values of ax,bx,cx and dx as input.

In: Computer Science

4. Write a multithreaded program that calculates various statistical values for a list of numbers. This...

4. Write a multithreaded program that calculates various statistical values for a list of numbers. This program will be passed a series of numbers on the command line and will then create five separate worker threads. One thread will determine the average of the numbers, the second will determine the maximum value, the third will determine the minimum value, fourth will determine the median value and the fifth will compute the std. deviation.

For example, suppose your program is passed the integers 90 81 78 95 79 72 85

The program will report

The average value is 82.8

The minimum value is 72

The maximum value is 95

The median value is 81

The standard deviation is 7.2

The variables representing the average, minimum, and maximum values will be stored globally. The worker threads will set these values, and the parent thread will output the values once the workers have exited.

In: Computer Science

Write a C++ program to read characters from the keyboard until a '#' character is read....

Write a C++ program to read characters from the keyboard until a '#' character is read. Then the program will find and print the number of uppercase letters read from the keyboard.

In: Computer Science

Specifications: Write a Java program called LifeRaft.java that will do all of the following: Display a...

Specifications:

Write a Java program called LifeRaft.java that will do all of the following:

  1. Display a title
  2. Ask the user to enter the following values:
    1. The type of plane(Boeing 747 or Airbus A300)
    2. The number of passengers on board the Plane
    3. The number of crew aboard the plane
    4. The maximum number of people that can be carried by one liferaft assuming all the liferafts on the plane are the same size
    5. The actual number of liferafts that are available on board the plane

  1. Calculate and display the following results:
    1. The minimum number of liferafts required to carry all the people
    2. The number of people that would be rescued if the available liferafts were filled (but not beyond the number of people on board the plane) as well as the percentage that this represents of all the people on board
    3. The number of people that would drown as well as the percentage that this represents of all the people on board
    4. If nobody drowns, then also display the number of additional people that could be carried by the liferafts if they were all filled to capacity regardless of whether this number is greater than the number of people on board.

Example 1:

  • If there are 240 passengers and 8 crew, and each liferaft can carry 40 people, then we need 7 liferafts. With 7 liferafts, up to 7 x 40 = 280 people can be carried. Note that 6 liferafts can only carry 240 people, which is not enough!
  • If there are 6 liferafts available then only 6 x 40 = 240 people will be rescued (100 x 240 / 248 = 96.77%). This means 248 – 240 = 8 people will drown (100 x 8 / 240 = 3.33%).

Example 2:

  • If there are 240 passengers and 8 crew, and each liferaft can carry 40 people, then we need 7 liferafts. With 7 liferafts up to 7 x 40 = 280 people can be rescued.
  • If there are 7 liferafts available then 7 x 40 = 280 people could be rescued, but there are only 248 people so only 248 will be saved (100%) and nobody drowns (0%).
  • With 7 liferafts the excess capacity would be 280 – 248 = 32 additional people.

In: Computer Science

Modify the HighArray class to implement the method specified below, which reads integer data from a...

  1. Modify the HighArray class to implement the method specified below, which reads integer data from a file to fill the array. The first integer read from the file should indicate the number of integers contained in the file which can be read into the array.



/**
* Read integers into array from named file. First element in
* file is a count of number of integers contained in the file.
*
* @param fileName   name of file containing integer data
*/
void readIntFile(String fileName)

Note: Use the void insert(int value) method defined in the class to add each integer to the array as it is loaded from the file.

Here is a sample code to read data from file

import java.io.File;

import java.io.FileNotFoundException;

import java.util.Scanner;

public class FileReaderSample {

    public static void main(String[] args) throws FileNotFoundException {

        Scanner in = new Scanner(System.in);

        System.out.println("Please enter file name");

      String s = in.nextLine();

        Scanner input = new Scanner(new File(s));

        int[] arr = new int[100];

        int i = 0;

        while (input.hasNextInt()) {

            int next = input.nextInt();

            arr[i] = next;

            i++;

        }// end while

        int nElems = i;

// Print the array contents

       System.out.println("Array Contents");

        for (i = 0; i < nElems; i++) {

            System.out.println(i + "\t" + arr[i]);

        }// end for

    }// end main

In: Computer Science

Hi i have this for a practical tomorrow (C++): a) Write a function vector merge(vector a,...

Hi i have this for a practical tomorrow (C++):

a) Write a function vector merge(vector a, vector b) that merges two vectors, alternating elements from both vectors. If one vector is shorter than the other, then alternate as long as you can and then append the remaining elements from the longer vector.

For example, if a is 1 4 9 16 and b is 9 7 4 9 11

Then merge returns the vector 1 9 4 7 9 4 16 9 11

b) Write a function vector merge_sorted(vector a, vector b) that merges two sorted vectors, producing a new sorted vector. For example, if a is 1 4 9 16 and b is 9 7 4 9 11 Then merge_sorted returns the vector 1 4 4 7 9 9 9 11 16

c) Write a procedure void pie_chart(vector data) that displays a pie chart of the values in data, assuming that all values in data are positive.

d) Write the selection sort algorithm as a template function, which can sort both numeric and string data types.

In: Computer Science

I need to write a method that sorts a provided Linked list with bubble sort and...

I need to write a method that sorts a provided Linked list with bubble sort and using ONLY Java List Iterator Methods (Link Below)

https://docs.oracle.com/javase/8/docs/api/java/util/ListIterator.html  

  public static <E extends Comparable<? super E>> void bubbleSort(List<E> c) throws Exception {

    // first line to start you off

    ListIterator<E> iit = c.listIterator(), jit;

    /**** Test code: do not modify *****/

    List cc = new LinkedList(c);

    Collections.sort(c);

    ListIterator it1 = c.listIterator(), it2 = cc.listIterator();

while (it1.hasNext()) {

if (!it1.next().equals(it2.next()))

        throw new Exception("List not sorted");

}

    /***********************************/

  }

In: Computer Science

Penetration testing (or pentesting) is an important part of keeping networks and systems safe from those...

Penetration testing (or pentesting) is an important part of keeping networks and systems safe from those who would attack them. However, because similar methods are used by attackers and penetration testers alike, some people and organizations may be apprehensive about unleashing those methods on their own networks.

Instructions for Main Post

Place yourself in the position of someone responsible for hiring a penetration testing firm to test the security of your systems.

Your initial post should include two parts:

  1. Your main concerns about the process and considerations you would need to take into account before commissioning a pentest.
  2. Information you found during researching how to best address your concerns. At a minimum this should include:
  • Qualifications or certifications that pentesters should have
  • Questions or surveys you can provide to prospective professionals/firms as part of the selection process
  • Industry guidance on how to engage and conduct a penetration test

In: Computer Science

in bluej java Writing Classes and Methods, Modulo operator, Integer Division, if-statements, Iteration

in bluej java Writing Classes and Methods, Modulo operator, Integer Division, if-statements, Iteration

In: Computer Science

what is a good hash function for ID numbers of format "LM-0001312", "LM-04341313", "LM-4205114"

what is a good hash function for ID numbers of format "LM-0001312", "LM-04341313", "LM-4205114"

In: Computer Science

Define a class Shoe with the following properties & methods. ForGender – r/w property (legal values:...

  1. Define a class Shoe with the following properties & methods.
  • ForGender – r/w property (legal values: M or F – define a public enum in the class)
  • Brand – r/w property (string)
  • US_ShoeSize – r/w property (decimal). Must be between 2 and 20 (throw an error if not).
  • UK_ShoeSize – public read-only & private set property. 0.5 smaller than US_Size for men’s shoes, 2.5 smaller for woman’s shoes.
  • Constructor method that sets the initial Brand, US_ShoeSize, ForGender of the shoe.

Demonstrate using the class and its properties/methods in C#.

In: Computer Science

6a) (6 pts. each) Find the decimal represented by the 32-bit single precision floating point number...

6a) (6 pts. each) Find the decimal represented by the 32-bit single precision floating point number for the hexadecimal value C47CD000.

In: Computer Science