Assignment #2*: Build A Report Purpose: Exercise, use, Inputs, Outputs, and perform conditional evaluation Requirements: (Multiple classes/Multiple types of input) • Input: Report Owner’s full name and 7 numbers (at least one double and one integer) o The owner’s name cannot contain any special characters, blank spaces, or numbers • You must use an if statement and at least one switch statement in your program • You are not allowed to have static variables or methods in any class except for the class with the main method. • You have to have at least 2 classes • You are not allowed to use ArrayLists or Vectors, only primitive arrays or string arrays if you want. Application Operation: 1.) Input, via a question in the console, the report owner’s first name as a string and build the last name via input, one character at a time. a. Check, conditionally, to make sure the first name and last name don’t contain any numeric characters, numbers between 0 – 9. If it does you must remove it. The names can not contain any white space either or special characters. 2.) Input report name via a request from the console. 3.) Input, and display, the total of the numeric input after each input is entered. Average the numeric input, indicate lowest numeric input value and the highest numeric input value for the previous numeric inputs, before the next numeric input is asked for. (Example given in class) 4.) Have a program exit input, condition, value available (i.e. if you type -1 the program exits) 5.) Create and display a final report that should have the report name, owner and the following: Numeric output should appear as a table with the following columns: (columns should be underlined) a. Input Number b. Highest Number c. Lowest Number d. Total (by the row) e. Average Number 6.) At the end of the report you must have a grand total for the numeric entries
In: Computer Science
Read the article that you will find entitled “The experience of nurses working with nursing students in a hospital: a phenomenological investigation.” Give a brief summary about the research study. Select one of the mid-range nursing theorists that can be used as the theoretical framework of the study and justify your answer. You must include at least two paragraphs in your analysis.
Objective:
This article explores the experiences of nurses working with
Spanish nursing students in a hospital.
Methods:
a qualitative phenomenological approach and a convenience sample
were used. Twenty-two nurses belonging to a public hospital in
Spain were included in the study. The data were collected through
unstructured and semi-structured interviews, and analyzed using
Giorgi's proposal. The Consolidated Criteria for Qualitative
Research Reports were followed.
Results:
Three main themes describe the experience of nurses: "The
relationship of the nurse with the nursing students" Most nurses
emphasize the importance of the first contact with the students and
consider that the attitude of the students is essential. "The
definition of the role of the student in clinical practice"; it is
necessary to unify the role and interventions of the nurse to avoid
misguiding the students and to establish priorities in clinical
practice. "Build bridges between clinical environments and the
University"; the need to establish common ground and connections
between the university and the hospital's clinical services was
emphasized. Nurses think that the educational program should also
be designed by the clinical services.
Conclusions:
Understanding the meanings of female nursing students with nurses
can provide a deeper insight into their expectations.
Descriptors: Nursing Education; Hospitals; Students in Nursing;
Qualitative research
In: Nursing
Consider the following relational schema:
Salerep(sales_rep_ID, name, address, commission, rate)
Customer(customer_number, name, address, balance, credit_limit, sales_rep_ID)
Part(part_number, part_description, on_hand, class, warehouse, price)
Orders(order_number, order_date, customer_number)
Orderlilne(order_number, part_number, number_order)
Write SQL statements for the following queries:
a) Produce a list showing part_number, part_description, on_hand, and price sorted by part_description.
b) List customer’s name followed by order_number, part_description, and number_order.
c) List names of customers who have ordered the most expensive item(Hint: Use a nested SQL query to determine thehighest price.)
d) List the names of the sale_reps who have sold the most number of part “123”.(Hint: Use a nested SQL query for the FROM clause)
In: Computer Science
At the beginning of 2016, IASB issued a new standard (IFRS 16) on leasing accounting. Explain the reasons behind this decision and the impact on companies’ financial statements.
In: Accounting
In what ways was the Republican party fracturing before the 2016 election? Essentially, how do we know it was a highly factionalized party?
*This is all the information*
In: Economics
In: Finance
in dollars outstanding in 2016, the largest money market security was Multiple Choice commercial paper. banker's acceptances. T-bills. Fed funds and repos.
In: Finance
What is Situational Analysis: brief description of current situation, including what the managers believe are the key issues. on Pandera Bread Company in 2016 Casebook.
In: Operations Management
For this programming assignment, you will use your previous code that implemented a video game class and objects with constructors. Add error checking to all your constructors, except the default constructor which does not require it. Make sure that the high score and number of times played is zero or greater (no negative values permitted). Also modify your set methods to do the same error checking. Finally add error checking to any input requested from the user.
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
class VideoGame {
private:
string name;
int highScore;
int numOfPlays;
public:
VideoGame() {
name = "NA";
highScore = 0;
numOfPlays = 0;
}
VideoGame(string n, int score, int num) {
name = n;
highScore = score;
numOfPlays = num;
}
VideoGame(string n) {
name = n;
highScore = 0;
numOfPlays = 0;
}
VideoGame(const VideoGame &p2)
{
name = p2.name;
highScore = p2.highScore;
numOfPlays = p2.numOfPlays;
}
void setName(string n) {
name = n;
}
void setHighScore(int score) {
highScore = score;
}
void setNumOfPlays(int num) {
numOfPlays = num;
}
string getName() {
return name;
}
int getHighScore() {
return highScore;
}
int getNumOfPlays() {
return numOfPlays;
}
};
string inputName() {
string n;
cout << "Enter name of video game: ";
getline(cin >> ws, n);
return n;
}
int inputHighScore() {
int score;
cout << "Enter current high score of game: ";
cin >> score;
return score;
}
int inputNumOfPlays() {
int num;
cout << "Enter number of times game is played: ";
cin >> num;
return num;
}
void output(VideoGame game) {
cout << game.getName() << endl
<< "Played " << game.getNumOfPlays() << " times (HIGH SCORE " << game.getHighScore() << ")" << endl;
}
int main() {
VideoGame game1, game2, game3("VideoGame 3");
game1.setName(inputName());
game1.setHighScore(inputHighScore());
game1.setNumOfPlays(inputNumOfPlays());
cout << "\nGame1" << endl;
output(game1);
cout << endl;
game2.setName(inputName());
game2.setHighScore(inputHighScore());
game2.setNumOfPlays(inputNumOfPlays());
cout << "\nGame2" << endl;
output(game2);
cout << "\nGame3" << endl;
output(game3);
VideoGame game4 = game2;
cout << "\nGame4" << endl;
output(game4);
return 0;
}
In: Computer Science
Create a C++ program to simulate an art gallery:
Title of painting
Artists first name
Artists last name
Address street number
Address street name
Address city
Address state
Address zip
Artists website
Category
Number
Should print to a file all of the paintings by category and in alphabetical order based on the artist's last name.
This is an example txt file but the program will be tested with multiple files with different numbers of paintings:
Full Fathom Five
Jackson
Pollock
16
Woodbury
Springs
NY
11937
www.jacksonpollock.com
Abstract
978-3-16-148410-0
Impression, Sunrise
Claude
Monet
361
Sunflower
Giverny
France
27620
www.claudemonet.com
Impressionism
968-3-16-158420-0
A Sunday Afternoon on the Island of La Grande Jatte
Georges
Seurat
89
Longview
Paris
France
75006
www.gseurat.com
Pointillism
918-3-15-152420-0
In: Computer Science