Selection sort on fstream data C++:
Sort the given student information data inside a text file
The format of the student data inside the text file is:
Student Number, Surname, First Name, Middle Name, Birthday, Course, Year, School Year
(The list can be updated over time so there is no limit for the size of the data)
But I need to automatically sort the given the data in ascending alphabetical order based on their surnames when displaying the list. I don't know how, please help me. Thank you :)
In: Computer Science
// staff should be coming in to
// campus, or staying at home. Only part of the code is here.
// It bases the decision based on a points system by asking
the
// user a set of questions and keeping track of how many
times
// it gets a yes response back.
//
// The code implements policy by assigning a weight to each of
the
// categories of symptoms/risk factors
// 1) Mild Symptoms (1pt each)
// 2) Severe Symptoms (2pt each)
// 3) Recent exposure (3pt each)
// 4) Risk factors (3pt each)
//
// This file implements only the checks FOR ( 1
MILD) symptoms.
//
// There are 5 errors in this code.
//
// ~-~-~- ~-~-~-~-~ ~-~-~-~-~ ~-~-~-~-~ ~-~-~-~-~ ~-~-~-~-~
~-~-~-~-~ ~-~-~-~-~|
import java.util.Scanner;
public class Fragment1 {
public static final int MILD_SYMPTOMS = 1;
// This method gets the next line of input from the
scanner and
// Checks to see if it is "yes" (in either upper or
lower case)
// If it is, it returns the number provided as the
second argument
// else, it returns 0.
public static int checkAndAdd(Scanner input, int
score){
String answer = input.nextLine();
if (answer.equalsIgnoreCase("yes")){
return 0;
} else {
return score;
}
}
// This method asks the user about a list of symptoms
and uses
// the checkAndAdd method to check the answers.
// Tt sums up a score based on MILD_SYMPTOMS for each
yes answer
// and returns the total.
public static int checkMildSymptoms(String name,
Scanner input) {
int score = 0;
System.out.println(name+ ", do you have chills? (yes/no)");
score--;
System.out.println(name+ ", do you have diarrhea? (yes/no)");
score += checkAndAdd(input, MILD_SYMPTOMS);
System.out.println(name+ ", do you have sore throat?
(yes/no)");
score += checkAndAdd(input, MILD_SYMPTOMS)
System.out.println{name+ ", do you have body aches?
(yes/no)");
score += checkAndAdd(input, MILD_SYMPTOMS);
System.out.println(name+ ", do you have headache? (yes/no)");
score += check&Add(input, MILD_SYMPTOMS);
return score;
}
public static void main(String[] args) {
int totalScore = 0; // Tabulates the likelihood of infection
int totalRisk = 0; // Tabulates the high risk categories
String name=""; // Stores the name so we can be friendly
// Setup the scanner so we can prompt the user for answers
Scanner input = new Scanner(System.in);
System.out.println("Your total score is "+
checkMildSymptoms(name,input)
+ " points");
}
}
In: Computer Science
You're crafting a portfolio of two stocks. You plan to buy $3,000 worth of the first stock and $1,000 worth of the second stock. The standard deviation of the first stock is 20% and the standard deviation of the second stock is 40%. They have a correlation coefficient of 0.3. How volatile will the portfolio be? Answer in percent rounded to two decimal places. (e.g., 4.53% = 4.53)
In: Finance
In: Operations Management
Firm A plans to buy Firm T in a LBO for $759,600. The target is projected to earn $270,000; $290,000, and $300,000 for the next three years respectively. If Firm A plans to sell Firm T after year 3 for $3,060,000, what is the IRR of the investment? (Assume a WACC of 12%)
In: Finance
1.
Customer | Debt to Income Ratio (DTI) | Annual Income | Credit Score | Extend Credit? |
Alice A. Hall | 0.49 | $50,325.00 | 4.1 | |
Bruce A. Farrell | 0.18 | $58,113.00 | 1.4 | |
Kathleen U. Lucas | 0.22 | $63,241.00 | 1.7 | |
Amy O. Norman | 0.48 | $14,347.00 | 1.1 | |
Ronnie T. Atkins | 0.33 | $11,698.00 | 3.6 | |
Martha O. Monroe | 0.03 | $28,112.00 | 3 | |
Lynn O. Robertson | 0.51 | $108,420.00 | 3.3 | |
Jose Y. Sykes | 0.32 | $88,224.00 | 1.1 | |
Robert E. Reid | 0.05 | $39,103.00 | 1.4 | |
Pauline H. Chandler | 0.31 | $34,964.00 | 3.1 | |
Stephen I. Finch | 0.43 | $40,079.00 | 2.5 | |
Peggy O. Hobbs | 0.11 | $99,100.00 | 4.8 | |
Donna D. Adkins | 0.29 | $97,847.00 | 1.4 | |
Doris I. Kinney | 0.29 | $40,437.00 | 2.3 | |
Ben H. Whitaker | 0.39 | $129,588.00 | 2.6 | |
Kristin L. Alexander | 0.31 | $69,515.00 | 4.8 | |
Ryan O. Conner | 0.47 | $42,391.00 | 3.6 | |
Tracey A. Waters | 0.05 | $52,559.00 | 4.9 | |
Mark E. Becker | 0.01 | $33,307.00 | 2.5 | |
Louis O. Rollins | 0.38 | $18,664.00 | 1 |
Criteria | |
DTI | 0.3 |
Annual Income | $ 37,000 |
Credit Score | 4 |
2. Create a formula that will return "Extend Credit" or "No Credit" in column F. In order to be receive credit, the customers must have DTI that is lower than .30 (30%) and annual income of at least $37,000 or have a credit score higher than 4.0
Sales | Sales | % |
0 >= Your Sales < 5000 | $ - | 0.00% |
5000 >= Your Sales < 10000 | $ 5,000 | 2.00% |
Your Sales > = 10000 | $ 10,000 | 4.00% |
Sales | Bonus $ |
$6,000.00 |
Enter an IF statement in G4 that will return the appropriate bonus for the sales recorded in F4. The actual bonus rate depend on the amount sold. The table B2:D5 show the bonus rate for different sales levels. This assignment will require a statement with multiple if's.
Please mention the excel formula used here.
In: Computer Science
Unit price: $50
Variable cost: $30
Fixed Cost: $430,000
Expected Sales: 42,000 units per year
However, you recognize that some of these estimates are subject to
error. Suppose that each variable may turn out to be either 10%
high or 10% lower than the initial estimate. The project will last
for 10 years and requires an initial investment of $1.9 million,
which will be depreciate straight line over the project life to a
final value of zero. The firm’s tax rate is 35% and the required
rate of return is 10%.
In: Finance
Scenario
You are an information technology (IT) intern working for Health Network, Inc. (Health Network), a fictitious health services organization headquartered in Minneapolis, Minnesota. Health Network has over 600 employees throughout the organization and generates $500 million USD in annual revenue. The company has two additional locations in Portland, Oregon and Arlington, Virginia, which support a mix of corporate operations. Each corporate facility is located near a co-location data center, where production systems are located and managed by third-party data center hosting vendors.
Company Products
Health Network has three main products: HNetExchange, HNetPay, and HNetConnect.
HNetExchange is the primary source of revenue for the company. The service handles secure electronic medical messages that originate from its customers, such as large hospitals, which are then routed to receiving customers such as clinics.
HNetPay is a Web portal used by many of the company’s HNetExchange customers to support the management of secure payments and billing. The HNetPay Web portal, hosted at Health Network production sites, accepts various forms of payments and interacts with credit-card processing organizations much like a Web commerce shopping cart.
HNetConnect is an online directory that lists doctors, clinics, and other medical facilities to allow Health Network customers to find the right type of care at the right locations. It contains doctors’ personal information, work addresses, medical certifications, and types of services that the doctors and clinics offer. Doctors are given credentials and are able to update the information in their profile. Health Network customers, which are the hospitals and clinics, connect to all three of the company’s products using HTTPS connections. Doctors and potential patients are able to make payments and update their profiles using Internet-accessible HTTPS Web sites.
Information Technology Infrastructure Overview
Health Network operates in three production data centers that provide high availability across the company’s products. The data centers host about 1,000 production servers, and Health Network maintains 650 corporate laptops and company-issued mobile devices for its employees.
Threats Identified
Upon review of the current risk management plan, the following threats were identified:
Management Request
Senior management at Health Network has determined that the existing risk management plan for the organization is out of date and a new risk management plan must be developed. Because of the importance of risk management to the organization, senior management is committed to and supportive of the project to develop a new plan. You have been assigned to develop this new plan.
Additional threats other than those described previously may be discovered when re-evaluating the current threat landscape during the risk assessment phase.
The budget for this project has not been defined due to senior management’s desire to react to any and all material risks that are identified within the new plan. Given the company’s annual revenue, reasonable expectations can be determined.
Project Part 2 Task 2: Business Continuity Plan (BCP)
After having reviewed and being impressed by your business impact analysis (BIA), senior management at Health Network has decided that your team must also develop a BCP. Management has allocated all funds for a BCP and your team has their full support, as well as permission to contact any of them directly for participation or inclusion in your BCP plan. You have been assigned to develop this new plan.
Winter storms on the East Coast have affected the ability of Health Network employees to reach the Arlington offices in a safe and timely manner. However, no BCP plan currently exists to address corporate operations. The Arlington office is the primary location for business units, such as Finance, Legal, and Customer Support. Some of the corporate systems, such as the payroll and accounting applications, are located only in the corporate offices. Each corporate location is able to access the other two, and a remote virtual private network (VPN) exists between each Production data center and the corporate locations.
The corporate systems are not currently being backed up and should be addressed in the new plan. The BCP should also include some details regarding how the BCP will be tested.
You may refer to the following additional resources to help you and your team develop a BCP, and you may use a BCP template if found during your research.
References:
Evaluation Criteria and Rubrics (Ask these questions to yourself)
Project Part 2 Task 3: Disaster Recovery Plan (DRP)
Your project on risk management, the BIA, and the BCP have been well received by senior management at Health Network. They now want you to develop a DRP in order to overcome any mishaps that might occur in the future. You may research and use National Institute of Standards and Technology (NIST) templates to develop a DRP plan for the company.
Evaluation Criteria and Rubrics (Ask these questions to yourself)
In: Operations Management
Prove by construction that the language An = { ai | i is a multiple of n } is regular.
In other words the language An contains all strings composed of the letter a some multiple of n times
In: Computer Science
*Describe the social and the culture roles that malls play in your community?
*Beside purchasing goods,why else do you think people visit malls?
*do you think malls become communities primary culture?
In: Economics
In: Computer Science
In: Economics
what you think might cause somebody to literally emerge from a situation as the leader… Any thoughts on this?
In: Operations Management
Assume that you are an IT Security Manager who needs to develop access control policies for the following areas: networking, server administration, database administration, and physical security. Choose one area and develop five actual policies that you could provide your employees. Please explain your choices and why these policies are important.Assume that you are an IT Security Manager who needs to develop access control policies for the following areas: networking, server administration, database administration, and physical security. Choose one area and develop five actual policies that you could provide your employees. Please explain your choices and why these policies are important.
In: Computer Science
REVIEW: KNOWLEDGE MANAGEMENT AND KNOWLEDGE MANAGEMENT SYSTEMS: CONCEPTUAL FOUNDATIONS AND RESEARCH ISSUES
Explain the following in summary;
1 a) Knowledge Storage and Retrieval and related research issues
b) Knowledge Transfer and related research issues
c) Knowledge Application and related research issues
In: Computer Science