Questions
In your opinion, why is it difficult to integrate IT and medicine? In your opinion, should...

In your opinion, why is it difficult to integrate IT and medicine?

In your opinion, should all HIMS implement a "integrated management" approach? (Why or Why Not?) **Tip: First, I would define what an HIMS is, Second define what an "integrated management" system is, Third: I would explain why OR why not I believed integrated management is needed in health care information systems.

In: Computer Science

In C++ and their need to be 3 files please Instructions In this lab, you will...

In C++ and their need to be 3 files please

Instructions

In this lab, you will modify the Student class you created in a previous lab. You will modify one new data member which will be a static integer data member. Call that data member count. You also add a static method to the Student class that will display the value of count with a message indicating what the value represents, meaning I do not want to just see a value printed to the screen.

Change main so that it calls this new method towards the end of the program. Call the method using the static syntax; do not use one of the instances of the Student class.

You will also need to change the Student constructor so that it increments the new data member you added, count. In your post explain why you get the value it displays.

Download Source Lab 7 Files:

File 1.) Source.cpp

#include

#include "Student.h"

using namespace std;

int main()

{

Student rich(2);

rich.DisplayStudent();

Student mary(3);

mary.DisplayStudent();

return 0;

}

File 2.) Student.cpp

#include "Student.h"

Student::Student(int numGrades)

{

quanity = numGrades;

grades = new int[numGrades];

name = "rich";

grades[0] = 88;

grades[1] = 96;

}

Student::~Student()

{

delete[] grades;

}

void Student::DisplayStudent()

{

cout << "Grades for " << name << endl;

for (int index = 0; index < quanity; index++)

{

cout << *(grades + index) << endl;

}

}

File 3.) Student.h #pragma once

#include

#include

using namespace std;

class Student

{

public: Student(int numGrades);

~Student();

void DisplayStudent();

private: string name;

int* grades;

int quanity;

};

In: Computer Science

Java This is background information First, code this project. Write a program that determines the change...

Java

This is background information First, code this project. Write a program that determines the change to be dispensed from a vending machine. An item in the machine can cost between 25 cents and a dollar, in 5-cent increments (25, 30, 35, ..., 90, 95, or 100) and the machine only accepts a single dollar bill to pay for the item. For example, a possible dialogue with the user might beEnter price of item(from 25 cents to a dollar, in 5-cent increments): 45You bought an item for 45 cents and gave me a dollar,so your change is 2 quarters,0 dimes, and 1 nickel.

You can write this program based on the program or with if statements. After getting it to work, include input checking. Display the change only if a valid price is entered (no less than 25 cents, no more than 100 cents, and an integer multiple of 5 cents). Otherwise, display separate error messages for any of the following invalid inputs: a cost under 25 cents, a cost that is not an integer multiple of 5, and a cost that is more than a dollar.

Write comments

In: Computer Science

**Python** 4. Running total of product and sum of integers input by a user Write a...

**Python**

4. Running total of product and sum of integers input by a user

Write a function ProdSum that asks a user to input a number from one to 99. If the input number is less than or equal to 25, then calculate the running product of each number inputted by the user that is less that or equal to 25. If the number is greater than 25, then calculate the running sum of each number inputted by the user that is greater that 25. If the user enters zero as input, then print out the total running product calculated and the total running sum calculated and end the function.

Assume the user can input as many numbers as desired until inputting a zero. Make sure you test the number inputted by the user to ensure it is in the range from zero to 99 and inform the user if the number is not in the range and to try again. Also print the appropriate labels for the two calculations in your print statements, as well as the number inputted by the user..

For Example:

Enter a number from 1 to 99 or 0 to Exit: 5

Enter a number from 1 to 99 or 0 to Exit: 83

Enter a number from 1 to 99 or 0 to Exit: 21

Enter a number from 1 to 99 or 0 to Exit: 55

Enter a number from 1 to 99 or 0 to Exit: 13

Enter a number from 1 to 99 or 0 to Exit: 64

Enter a number from 1 to 99 or 0 to Exit: 0

The product of the numbers [5, 21, 14] is 1470

The sum of the numbers [83, 55, 63] is 201

In: Computer Science

Please, Describe What is the interface ID in an IPv6 address - Give an example What...

Please, Describe

    1. What is the interface ID in an IPv6 address - Give an example
    1. What is the EUI-64 in an IPv6 address - Give an example
    2. Subnetting
    3. Give an example of the prefix of a network that does not need to subnet (do not copy the one in the book, prepare one yourself)
    4. Give an example of the prefix of a larger network with several locations (do not copy the one in the book, prepare one yourself)

In: Computer Science

Given below an example of memory configuration after a number of placement and swapping-out operations. Show...

  1. Given below an example of memory configuration after a number of placement and swapping-out operations. Show the location of new allocation using first-fit, next-fit and worst-fit placement algorithms in satisfying the following allocation requests:
    1. 10M.
    2. 15M.

Allocated block

Free block

4M

12M

16M

8M

   14M

20M

Last allocated block (4M)

In: Computer Science

Java Coding Program. In this assignment, you will write a program that analyzes Phoenix area 2018...

Java Coding Program.

In this assignment, you will write a program that analyzes Phoenix area 2018 rainfall data. Inside the main() method, first you will get the rainfall data for each of the 12 months in 2018 from the user and stores them in a double array. Next, you will need to design the following four value-returning methods that compute and return to main() the totalRainfall, averageRainfall, driestMonth, and wettestMonth. The last two methods return the index (or number) of the month with the lowest and highest rainfall amounts, not the amount of rain that fell those months. Notice that this month index (or number) can be used to obtain the amount of rain that fell those months.

I need help with driestMonth and wettestMonth. Wettest month is not giving me the correct output.

This is how it should read when it prints out on screen. Example : "The least rain fell in May with 0.35 inches."

This is what I have so far.

----------------------------------------------------------------------------

import java.util.Scanner;
import java.text.DecimalFormat;

public class Assignment12
{
public static void main(String[] args)
{
// variables
final int numMonths = 12;
double[] rainArray = new double[numMonths];
String[] month = {"Januray", "February", "March", "April", "May",
"June", "July", "August", "September",
"October", "November", "December"};
  
Scanner scan = new Scanner(System.in);
DecimalFormat fmt = new DecimalFormat("0.00");
  

// get user input for rainfall each month
for(int i=0; i < numMonths; i++)
{
System.out.print("\nEnter " + month[i] + " rainfall amount: ");
rainArray[i] = scan.nextDouble();
}
  
System.out.print("\n==== 2018 Rain Report for Phoenix, AZ ====");
System.out.print("\nTotal rainfal: " + fmt.format(getTotal(rainArray)));
System.out.print("\nAverage monthly rainfall: " + fmt.format(getAverage(rainArray)));
System.out.print("\nThe least rain feel in " + getWettestMonth(rainArray));
System.out.print("\nThe most rain fell in ");
}
  
public static double getTotal(double[] rainArray)
{
double total = 0;
final int numMonths = 12;
for(int i=0; i < numMonths; i++)
{
total = total + rainArray[i];
}
return total;
}
  
public static double getAverage(double[] rainArray)
{
double total = 0;
double average = 0;
final int numMonths = 12;
for(int i=0; i < numMonths; i++)
{
total = total + rainArray[i];
}
average = total / numMonths;
return average;
}
  
public static int getWettestMonth(double[] rainArray)
{
int mostRainIndex = 0;
final int numMonths = 12;
for(int i=0; i < numMonths; i++)
{
if(rainArray[i] > rainArray[mostRainIndex])
{
mostRainIndex = i;
}
}
return mostRainIndex;
}

public static int getDriestMonth(double[] rainArray)
{
//code
}
}

In: Computer Science

For this assignment, we will learn to use Python's built in set type. It's a great...

For this assignment, we will learn to use Python's built in set type. It's a great collection class that allows you to get intersections, unions, differences, etc between different sets of values or objects.

1. Create a function named common_letters(strings) that returns the intersection of letters among a list of strings. The parameter is a list of strings.

For example, you can find the common letter in the domains/words statistics, computer science, and biology. You might easily see it, but you need to write Python code to compute the answer. In order to pass the tests you must use the set api.

In: Computer Science

A certain symmetric encrption system El uses the following secret key (KI) for confidential communication between...

A certain symmetric encrption system El uses the following secret key (KI) for confidential communication between A and B FEA01FAA3459012D (hex) A decides to deliver this secret key (K1) to B by transmitting it over the same insecure channel using a second encryption scheme E2 a- What method of encryption would you suggest for E2? b- Based on your suggestion, what would be the size in bits of the key (K2) used in encryption system E2? c- If a system of computers has the ability to try 64 keys every 100 microseconds in an effort to decipher the message encrypted by E1 by brute force, how long (on average) would it take to break the code? d- Is El computationally secure?

In: Computer Science

System Analysis project 4: can you answer the 4 questions at the task section, thank you....

System Analysis project 4: can you answer the 4 questions at the task section, thank you.
Personal Trainer, Inc. owns and operates fitness centers in a dozen Midwestern cities. The centers have done well, and the company is planning an international expansion by opening a new “supercenter” in the Toronto area. Personal Trainer’s president, Cassia Umi, hired an IT consultant, Susan Park, to help develop an information system for the new facility. During the project, Susan will work closely with Gray Lewis, who will manage the new operation. Background During requirements modeling for the new system, Susan Park met with fitness center managers at several Personal Trainer locations. She conducted a series of interviews, reviewed company records, observed business operations, analyzed the BumbleBee accounting software, and studied a sample of sales and billing transactions. Susan’s objective was to develop a list of system requirements for the proposed system.


Fact-Finding Summary

• A typical center has 300–500 members, with two membership levels: full and limited. Full members have access to all activities. Limited members are restricted to activities they have selected, but they can participate in other activities by paying a usage fee. All members have charge privileges. Charges for merchandise and services are recorded on a charge slip, which is signed by the member. • At the end of each day, cash sales and charges are entered into the BumbleBee accounting software, which runs on a computer workstation at each location. Daily cash receipts are deposited in a local bank and credited to the corporate Personal Trainer account. The BumbleBee program produces a daily activity report with a listing of all sales transactions. • At the end of the month, the local manager uses BumbleBee to transmit an accounts receivable summary to the Personal Trainer headquarters in Chicago, where member statements are prepared and mailed. Members mail their payments to the Personal Trainer headquarters, where the payment is applied to the member account. • The BumbleBee program stores basic member information, but does not include information about member preferences, activities, and history. • Currently, the BumbleBee program produces one local report (the daily activity report) and three reports that are prepared at the headquarters location: a monthly member sales report, an exception report for inactive members and late payers, and a quarterly profitand-loss report that shows a breakdown of revenue and costs for each separate activity. During the interviews, Susan received a number of “wish list” comments from managers and staff members. For example, managers want more analytical features so they can spot trends and launch special promotions and temporary discounts. Managers also want better information about the profitability of specific business activities at their centers, instead of bottom-line totals. Several managers want to offer computerized activity and wellness logs, fitness coaching for seniors, and various social networking options, including e-mail communications, fitness blogs, Facebook, and Twitter posts. Staff members want better ways to handle information about part-time instructors and trainers, and several people suggested using scannable ID cards to capture data


Tasks

1. Draw a DFD that shows how data will be stored, processed, and transformed in the TIMS system.

2. Draw an FDD that shows the Personal Trainer’s main functions. Also draw a use case diagram that represents the interaction between a user and the proposed TIMS system.

3. Using the information gathered during fact-finding, develop a requirements checklist that includes examples in each of the five main categories.

4. Gray is not familiar with the TCO concept. How should Susan explain it to him?

In: Computer Science

How many integers from 1 to 500 inclusive are (a) divisible by 6, but are divisible...

How many integers from 1 to 500 inclusive are

(a) divisible by 6, but are divisible by neither 8 nor 10?

(b) divisible by 6 or 8, but are not divisible by 10?

(c) divisible by 6 and 8, or are not divisible by 10?

In: Computer Science

PROBLEM 5: Code for the Ages Function Name: goldenAges() The coding language is Jes Python Parameters:...

PROBLEM 5: Code for the Ages Function Name: goldenAges()

The coding language is Jes Python

Parameters: ● list1: a list containing the names of the TAs ● list2: a list containing the ages of the TAs

Return Value: none

Description: I have to concede defeat. It's pretty hard to be creative and reference memes when working with File I/O, so you guys will get to learn something about us you might not already know: our ages!! For this problem, write a function that takes in two lists and writes to a file called "TAages.txt". The function should match the ages to the correct TA and write sentences which say how old each TA is on separate lines. The TA names should be written to the file in reverse order, and the ages written in the same order as your parameter. Remember to close your file at the end!

Test Cases: >>>goldenAges(["Genevieve","Tanya","Khalil","Ryan","Christina"],[19,21,22,21,19])

In: Computer Science

Create a new C# project in Visual Studio. The purpose of this application is to allow...

Create a new C# project in Visual Studio. The purpose of this application is to allow the user to open a data file of their choice and your program will retrieve the contents and display them in a ListBox on your Form. Your Form will need an ‘Open’ Button to begin the process, as well as an OpenFileDialog control to allow the user to pick a file of their choice. The OpenFileDialog control should start the user in their ‘C:\’ drive, and should be pre-filtered to only show text files (*.txt). You will also need a ListBox to display the file contents, and the usual Reset and Close Buttons. Be sure to test the application with your own text file. The file you generated in Assessment might be a good choice, but realize I will check it with my own file, which might hold more than just a series of numbers. Since you don’t know the contents of the file, or how many lines there are, make sure that your ListBox is wide enough to handle content as wide as 150 characters per line without horizontal scrolling, and that your file-reading code has the appropriate data validation to determine if the user picked a file or not, and to read *all* the contents of the chosen file, no matter how many lines there are, without going over the end of the file.

In: Computer Science

Write a JAVAprogram that reads a word and prints all its substrings, sorted by length. It...

Write a JAVAprogram that reads a word and prints all its substrings, sorted by length. It then generates a random index between 0 and the length of the entered word, and prints out the character at that index.

For example, if the user provides the input "rum", the program prints
r
u
m
ru
um
rum

The random index generated is 1. The character at index 2 is u.

In: Computer Science

Stack and Queue In this question, you will implement a modified version of stackArray class. This...

Stack and Queue

In this question, you will implement a modified version of stackArray class. This modified class requires you to:

• Implement two stacks using a single array. One stack uses the beginning of the array and the other uses the other end.

• Your code should allowing pushes to and pops from each stack by passing the 0 and 1 to any function to identify the needed stack.

• All stack functions should be be applied on both stack. For example, print(0) will print the content of the first stack while print(1) will print the other stack.

• Your stack should contain the following functions at least: isEmpty, isFull, push, pop, top, clear, print and getsize.

• The capacity of the array may be grow depending on the sum of number of objects stored in the two stacks.

• Moreover, the capacity maybe reduced to the half of the current capacity if the number of objects remaining in the two stacks (after each pop) is 1/4 the capacity of the array or less. The capacity of the array may not be reduced below the initially specified capacity.

using C++

this is the stack array code

#define DEFAULT_CAPACITY 10000
template <class T> class StackArray{
public:
   StackArray(int capacity = DEFAULT_CAPACITY);
   ~StackArray();

   void push(T& val);
   T pop(void);
   T top(void);
   bool isEmpty(void);
   bool isFull(void);
   void clear(void);

private:
   T* data;
   int capacity, last;
};


template <class T>
StackArray<T>::StackArray(int cap){
   capacity = cap;
   data = new T[capacity];
   last = -1;
}

template <class T>
StackArray<T>::~StackArray(void){
   delete [] data;
}

template <class T>
void StackArray<T>::push(T& el)
{
   if(isFull() )
   {
       printf("\n Can't push into a full stack!");
       return;
   }
   last++;
   data[last] = el;
}

template <class T>
T StackArray<T>::pop()
{
   if(isEmpty() )
   {
       printf("\n Can't pop from an empty stack!");
       return -1;
   }
   T el = data[last];
   last--;
   return el;
}

template <class T>
T StackArray<T>::top()
{
   if(!isEmpty() )
   {
       printf("\n Stack is empty!");
       return -1;
   }
   return data[last];
}

template <class T>
bool StackArray<T>::isEmpty(void)
{
   return last == -1;
}

template <class T>
bool StackArray<T>::isFull(void)
{
   return last+1 == capacity;
}

template <class T>
void StackArray<T>::clear(void)
{
   last = -1;
}

In: Computer Science