Questions
Reference Needed. 200 word if possible. Discuss sources of healthcare revenue, assets, liabilities, and net worth....

Reference Needed. 200 word if possible.

Discuss sources of healthcare revenue, assets, liabilities, and net worth.

Reference Needed. 200 word if possible.

In: Accounting

solution using stack Reversing a word or a sentence: Write an algorithm that will display a...

solution using stack

Reversing a word or a sentence:

Write an algorithm that will display a given word in a reverse order.

- e.g. "Data Structures" will be "serutcurtS ataD".

In: Computer Science

2. (WordValue.scala) Write a Scala function, to compute the value of a word. The value of...

2. (WordValue.scala) Write a Scala function, to compute the value of a word. The value of a word is defined as the sum of the values of the individual letters of the word with value of "a" being 1, "b" being 2 etc. Upper and lower case letters have the same value. You can assume that the word consists of just letters. Here is the signature of the function:

def wordValue(s: String): Int = ???

For example, wordValue("Attitude") = 100. No loops/iterations allowed. Use recursion. Submit just the code for the function and any helpers you develop. We will call your function with our test cases.

In: Computer Science

1. For all of the following words, if you move the first letter to the end...

1. For all of the following words, if you move the first letter to the end of the word and then spell the word backwards, you get the original word:

banana dresser grammar potato revive uneven assess

Write a program that gets a word from the keyboard and determines whether it has this property. treat uppercase and lowercase letters alike. That means that poTato also has this property.

2. Write a program that generates a random number (between 1 and 10 inclusive) 100 times. Output the total number of 1s, 2s, ….10s.

Code language is Java. using JGrasp to code

In: Computer Science

Use the Internet to research a desktop PC, a laptop, and a tablet. Prepare a report...

Use the Internet to research a desktop PC, a laptop, and a tablet. Prepare a report using Microsoft Word 2016 to compare each computer, including specifications such as cost, features, and computing power. In addition mention at least one advantage and one disadvantage of each type of computer.
You may use the Microsoft 2016 Office Text Manual and the Online Word Help (Online Word Help is available by clicking the “?” located in the upper right hand corner of Word Tool Bar) or use the “Tell me” box for entering words or phrases about what you want to assist in developing your assignment.

In: Computer Science

(1) Prompt the user for a string that contains two strings separated by a comma. (1...

(1) Prompt the user for a string that contains two strings separated by a comma. (1 pt)

  • Examples of strings that can be accepted:
    • Jill, Allen
    • Jill , Allen
    • Jill,Allen

Ex:

Enter input string:
Jill, Allen


(2) Print an error message if the input string does not contain a comma. Continue to prompt until a valid string is entered. Note: If the input contains a comma, then assume that the input also contains two strings. (2 pts)

Ex:

Enter input string:
Jill Allen
Error: No comma in string.

Enter input string:
Jill, Allen


(3) Extract the two words from the input string and remove any spaces. Store the strings in two separate variables and output the strings. (2 pts)

Ex:

Enter input string:
Jill, Allen
First word: Jill
Second word: Allen


(4) Using a loop, extend the program to handle multiple lines of input. Continue until the user enters q to quit. (2 pts)

Ex:

Enter input string:
Jill, Allen
First word: Jill
Second word: Allen

Enter input string:
Golden , Monkey
First word: Golden
Second word: Monkey

Enter input string:
Washington,DC
First word: Washington
Second word: DC

Enter input string:
q

_________________________

Given code to work with: main.cpp

#include <iostream>
#include <string>
using namespace std;

int main() {

/* Type your code here. */
  
return 0;
}

thanks.

In: Computer Science

In C Please *Asked before but all previous answers do not work correctly* 10.6 LAB: Warm...

In C Please

*Asked before but all previous answers do not work correctly*

10.6 LAB: Warm up: Parsing strings

(1) Prompt the user for a string that contains two strings separated by a comma. (1 pt)

  • Examples of strings that can be accepted:
    • Jill, Allen
    • Jill , Allen
    • Jill,Allen

Ex:

Enter input string:

Jill, Allen


(2) Report an error if the input string does not contain a comma. Continue to prompt until a valid string is entered. Note: If the input contains a comma, then assume that the input also contains two strings. (2 pts)

Ex:

Enter input string:
Jill Allen
Error: No comma in string.

Enter input string:
Jill, Allen
(3) Extract the two words from the input string and remove any spaces. Store the strings in two separate variables and output the strings. (2 pts)

Ex:

Enter input string:

Jill, Allen

First word: Jill

Second word: Allen


(4) Using a loop, extend the program to handle multiple lines of input. Continue until the user enters q to quit. (2 pts)

Ex:

Enter input string:

Jill, Allen

First word: Jill

Second word: Allen

Enter input string:

Golden , Monkey

First word: Golden

Second word: Monkey

Enter input string:

Washington,DC

First word: Washington

Second word: DC

Enter input string:

q

In: Computer Science

you will be implementing two functions for the LinkedList class. The function that you are implementing...

you will be implementing two functions for the LinkedList class. The function that you are implementing is called reverse and isPalindrome. The isPalindrome function should determine if the linked list is a palindrome or not and the reverse function should reverse the linked list.

When you are finished with the implementation, try to use valgrind to see if there are any other errors or memory leaks to deal with. valgrind ./lab7 or make val

  1. Expected Output

This is an example of what the output should look like. Note that the program must compile without any warnings or memory leaks.

==2353315== Memcheck, a memory error detector

==2353315== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.

==2353315== Using Valgrind-3.16.0 and LibVEX; rerun with -h for copyright info

==2353315== Command: ./lab7

==2353315==

The word: tenet is a palindrome.

The word: LOLO is not a palindrome.

The word: Zendaya is not a palindrome.

The word: kayak is a palindrome.

The word: step on no pets is a palindrome.

The word: I did did I is a palindrome.

The word: CMSC 202 is not a palindrome.

The word: wasitacatisaw is a palindrome.

==2353315==

==2353315== HEAP SUMMARY:

==2353315==     in use at exit: 0 bytes in 0 blocks

==2353315==   total heap usage: 158 allocs, 158 frees, 76,512 bytes allocated

==2353315==

==2353315== All heap blocks were freed -- no leaks are possible

==2353315==

==2353315== For lists of detected and suppressed errors, rerun with: -s

==2353315== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

In: Computer Science

Write a python program using the following requirements: Create a class called Sentence which has a...

Write a python program using the following requirements:

Create a class called Sentence which

  • has a constructor that takes a sentence string as input.
    • The default value for the constructor should be an empty string
    • The sentence must be a private attribute in the class
  • contains the following class methods:
    • get_all_words — Returns all the words in the sentence as a list
    • get_word — Returns only the word at a particular index in the sentence
      • Arguments: index
    • set_word — Changes the word at a given index in sentence to a new word
      • Arguments: index, new_word
      • Does not return anything
    • a str method — Returns the sentence as a string using the built in method

Include a unit test in an if __name__ block to test the class. Use assert to check for errors.

Unit Test Example:

  • Set a sentence variable with a sentence of your choice
  • Instantiate the Sentence object using the variable
  • Test that get_all_words() correctly returns that sentence as a list
  • Test that get_word(#) correctly returns the # word in the sentence
  • Test that replace() actually changes a word in the sentence object
  • Print the sentence before and after the word change using the built in str method

In: Computer Science

do tou agree wjth the argument that globalization constrains the autonomh and capacity of the state?...

do tou agree wjth the argument that globalization constrains the autonomh and capacity of the state? why or why not?
must be 600 words and not word for word from google

In: Economics