Questions
Provide citation for one written article online and discuss how it suggests what we should do...

Provide citation for one written article online and discuss how it suggests what we should do to speak with confidence. (Just provide one article that suggests how to speak with confidence, and briefly describes what that article talks about)

In: Psychology

You are to write a class StringPlay that has only a main method. This class contains...

You are to write a class StringPlay that has only a main method. This class contains all interaction with the user.

The main method

  • Uses a Scanner to accept user input
  • Maintains a “currentString
  • Uses a sentinel-controlled loop to accept multiple user commands, or exit
  • The program displays a message asking the user to enter one of the following commands
    • a – enter a new value for current
    • b – padLeft asks the user for the number of characters to add to the start of the current string, and the character to use for the padding
    • c – padRight asks the user for the number of characters to add to the end of the current string, and the character to use for the padding
    • d – zapLeft asks the user for the number of characters to remove from the start of the current string
    • e – zapRight asks the user for the number of characters to remove from the end of the current string
    • f – exits the program
  • The loop body performs its actions using the appropriate method from StringUtils.
  • After the action is completed, the loop displays the current string and prompts for another command.

Notes

Use Scanner’s next method for the “e” command; we will limit our user input to have no spaces or other whitespace. Similarly, padding characters will not be whitespace. You may assume valid user input.

In: Computer Science

1. What are the four tools of monetary policy? Draw a diagram of the Federal Funds...

  1. 1.
    1. What are the four tools of monetary policy?
    2. Draw a diagram of the Federal Funds market and show changes as a result of the following. (draw separate diagrams for each of these cases).
      1. Fed lowers the discount rate
      2. Fed raises the interest rate on excess reserves
      3. Fed raises the required reserve ratio
      4. The demand for federal funds shifts to the right
      5. The demand for federal funds shifts to the left
    3. What type of defensive open market operations has to be undertaken in the above cases (iv) and (v).

In: Economics

Describe how frame transmission takes place in a LAN with a physical ring topology.

Describe how frame transmission takes place in a LAN with a physical ring topology.

In: Computer Science

Why do fixed costs create an element of the unknown in the decision-making process?

Why do fixed costs create an element of the unknown in the decision-making process?

In: Accounting

1. Your company is growing worldwide and for the first time it sends managers abroad. What...

1. Your company is growing worldwide and for the first time it sends managers abroad. What are you going to do to ensure these people are able to face the ethical dilemmas they face?

2. Imagine if you had a payoff or lose the contract with someone. How are you going to think about it? What are you going to do? Why does this happen? What factors could influence your decision? What would you expect in terms of assistance from your employer?

In: Operations Management

Why do we say the Greek civilization is the “fountainhead” of Western civilization? essay

Why do we say the Greek civilization is the “fountainhead” of Western civilization? essay

In: Psychology

Provide three materials on how to speak with confidence, one from a written material, one from...

Provide three materials on how to speak with confidence, one from a written material, one from a video (could be youtube, ted talk or other videos), one from the people you observed and talked to. Briefly discribe what they talk about. Explain how these materials help you speak with confidence more.

In: Psychology

Based on the textbook “Selling Building Partnerships" 10th edition Chapter 7's questions 8 and 9 on...

Based on the textbook “Selling Building Partnerships" 10th edition Chapter 7's questions 8 and 9 on page 194, Although there is no firm rule, explain what you think to be the best time of day as well as the worst time of day for calling the following individuals as a saleperson: "a) a college computer/bookstore manager (to sell computer accessories; b) a manager at a glass installation and repair company (to sell a new tool to remove broken glass shards); c) a condominium complex manager (to sell a new camera security system); and d) an air conditioner contractor (to sell a new brand of air conditioning system)."

In: Psychology

power point slides on canada for 2 minute speech on dissaperance or death of child leaves.

power point slides on canada for 2 minute speech on dissaperance or death of child leaves.

In: Operations Management

Please explain; What are some sources of process class in organizations?

Please explain; What are some sources of process class in organizations?

In: Operations Management

JAVA PROGRAM The Florida Dental Association needs a simple program to record what teeth the members...

JAVA PROGRAM

The Florida Dental Association needs a simple program to record what teeth the members of Florida families have. Different Floridians have different numbers of different types of teeth (the program must use this simplified categorization of types of teeth):

  • Biting teeth (the 'B' teeth)
  • Chewing teeth (the 'C' teeth)
  • Missing teeth (the 'M' teeth)

The program must record the teeth for one Florida family. When it starts the program asks how many people there are in the family (maximally 5), then for each family member gets their name, a string of tooth types for the uppers (maximally 10 teeth including missing teeth), and a string a tooth types for the lowers (maximally 10 teeth), e.g., the string "CMCBBBMCCM" would represent 10 teeth (of which three are missing). The names are recorded in an array of strings. The tooth information is recorded in a three dimensional array of characters, where each plane corresponds to a person, there are two rows for uppers and lowers, and each row has a column for each tooth. Once the information is recorded the program must offer a menu of four options:

  1. Print the family's teeth record.
  2. Extract a tooth (with a check that there is something there to remove).
  3. Report the family's root canal indices, which are the roots of the quadratic equation Bx2 + Cx - M, where B, C, and M are the family's numbers of those types of teeth.
  4. Exit (with a smile)

The program must be reasonably idiot proof:

  • Menu options must be accepted in upper and lower case.
  • Tooth letters must be accepted in upper and lower case.
  • All input must be checked to be in range, and if not the user must be asked to input again.
  • You may assume that numeric input will be syntactically correct.

Here's what a sample run should look like (with the keyboard input shown in italics) ...

Welcome to the Floridian Tooth Records
--------------------------------------
Please enter number of people in the family : -3
Invalid number of people, try again         : 7
Invalid number of people, try again         : 3
Please enter the name for family member 1   : Henrietta
Please enter the uppers for Henrietta       : ABCDEFGHIJ
Invalid teeth types, try again              : BBBCMCBBBMCCMBBB
Too many teeth, try again                   : CMCBBBMCCM
Please enter the lowers for Henrietta       : CCMBBMCC
Please enter the name for family member 2   : Stanley
Please enter the uppers for Stanley         : mbbm
Please enter the lowers for Stanley         : ccMMcc
Please enter the name for family member 3   : Raul
Please enter the uppers for Raul            : CCBbbcC
Please enter the lowers for Raul            : ccbBBCC

(P)rint, (E)xtract, (R)oot, e(X)it          : T
Invalid menu option, try again              : p

Henrietta
  Uppers:  1:C  2:M  3:C  4:B  5:B  6:B  7:M  8:C  9:C 10:M
  Lowers:  1:C  2:C  3:M  4:B  5:B  6:M  7:C  8:C
Stanley
  Uppers:  1:M  2:B  3:B  4:M
  Lowers:  1:C  2:C  3:M  4:M  5:C  6:C
Raul
  Uppers:  1:C  2:C  3:B  4:B  5:B  6:C  7:C
  Lowers:  1:C  2:C  3:B  4:B  5:B  6:C  7:C

(P)rint, (E)xtract, (R)oot, e(X)it          : E
Which family member                         : Melanie
Invalid family member, try again            : stanley
Which tooth layer (U)pper or (L)ower        : M
Invalid layer, try again                    : u
Which tooth number                          : 27
Invalid tooth number, try again             : 4
Missing tooth, try again                    : 2

(P)rint, (E)xtract, (R)oot, e(X)it          : P

Henrietta
  Uppers:  1:C  2:M  3:C  4:B  5:B  6:B  7:M  8:C  9:C 10:M
  Lowers:  1:C  2:C  3:M  4:B  5:B  6:M  7:C  8:C
Stanley
  Uppers:  1:M  2:M  3:B  4:M
  Lowers:  1:C  2:C  3:M  4:M  5:C  6:C
Raul
  Uppers:  1:C  2:C  3:B  4:B  5:B  6:C  7:C
  Lowers:  1:C  2:C  3:B  4:B  5:B  6:C  7:C

(P)rint, (E)xtract, (R)oot, e(X)it          : R
One root canal at     0.40
Another root canal at -2.07

(P)rint, (E)xtract, (R)oot, e(X)it          : X

Exiting the Floridian Tooth Records :-)

In: Computer Science

Hi, I don’t know why I keep getting this error and I’ve spent a while on...

Hi, I don’t know why I keep getting this error and I’ve spent a while on it now. I am coding in C++.

Here is my .h

___

#ifndef CARD_H
#define CARD_H

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

class Card 
{
    private: 
    
    int powerLevel;
    string element;
    
    public:
    
    Card();
    Card(string, int);
    string getElement();
    int getPowerLevel();
    void displayCard();
};

#endif

___

Here is my .cpp

___

#include <iostream>
#include "Card.h"
#include <string>
using namespace std;

Card::Card()
{
    element = "";
    powerLevel = 0;
}

Card::Card(string e, int a)
{
    element = e;
    powerLevel = a;
}

string Card::getElement()
{
    return element;
}

int Card::getPowerLevel()
{
    return powerLevel;
}

void Card::displayCard()
{
    cout << element << "-" << powerLevel << endl;
}

___

This is the error message

___

/tmp/ccOrFltm.o: In function `Card::Card()':
Card.cpp:(.text+0x0): multiple definition of `Card::Card()'
/tmp/ccRpEdKb.o:Card.cpp:(.text+0x0): first defined here
/tmp/ccOrFltm.o: In function `Card::Card()':
Card.cpp:(.text+0x0): multiple definition of `Card::Card()'
/tmp/ccRpEdKb.o:Card.cpp:(.text+0x0): first defined here
/tmp/ccOrFltm.o: In function `Card::Card(std::string, int)':
Card.cpp:(.text+0x64): multiple definition of `Card::Card(std::string, int)'
/tmp/ccRpEdKb.o:Card.cpp:(.text+0x64): first defined here
/tmp/ccOrFltm.o: In function `Card::Card(std::string, int)':
Card.cpp:(.text+0x64): multiple definition of `Card::Card(std::string, int)'
/tmp/ccRpEdKb.o:Card.cpp:(.text+0x64): first defined here
/tmp/ccOrFltm.o: In function `Card::getElement()':
Card.cpp:(.text+0xd0): multiple definition of `Card::getElement()'
/tmp/ccRpEdKb.o:Card.cpp:(.text+0xd0): first defined here
/tmp/ccOrFltm.o: In function `Card::getPowerLevel()':
Card.cpp:(.text+0xfe): multiple definition of `Card::getPowerLevel()'
/tmp/ccRpEdKb.o:Card.cpp:(.text+0xfe): first defined here
/tmp/ccOrFltm.o: In function `Card::displayCard()':
Card.cpp:(.text+0x10e): multiple definition of `Card::displayCard()'
/tmp/ccRpEdKb.o:Card.cpp:(.text+0x10e): first defined here
collect2: error: ld returned 1 exit status

___

Thank you for your time

In: Computer Science

Effective process control distinguishes between attribute and variable data.   Describe some attribute data and variable data,...

Effective process control distinguishes between attribute and variable data.  

  • Describe some attribute data and variable data, as defined by the author, and label which category includes quantitative vs qualitative variation and how this applies to control charts?

In: Operations Management

Can performance on some jobs simply not be measured? Why or why not?

Can performance on some jobs simply not be measured? Why or why not?

In: Psychology