Questions
Selection sort on fstream data C++: Sort the given student information data inside a text file...

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...

// 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

1. Customer Debt to Income Ratio (DTI) Annual Income Credit Score Extend Credit? Alice A. Hall...

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

Prove by construction that the language An = { ai | i is a multiple of...

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

what sequence of numbers would be printed if the following function were executed with the value...

what sequence of numbers would be printed if the following function were executed with the value of N being 0?

def xxx (N):
print (N)
if (N < 5):
xxx (N + 2)
print (N)
  

In: Computer Science

Assume that you are an IT Security Manager who needs to develop access control policies for...

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...

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

Describe these 4 medium-size security tools.( Wireshark, nmap, Snort, SQLMap)

Describe these 4 medium-size security tools.( Wireshark, nmap, Snort, SQLMap)

In: Computer Science

PHP Review For the Programming part: 1. Where (Which directory) you store the database connecting information?...

PHP

Review

For the Programming part:

1. Where (Which directory) you store the database connecting information? parallel to htdocs folder why? no one can access except the admin

2. difference between GET and POST methods

3. Include multiple files: include, include_once, require, require_once

4. what is a sticky form?

In: Computer Science

REVIEW: KNOWLEDGE MANAGEMENT AND KNOWLEDGE MANAGEMENT SYSTEMS: CONCEPTUAL FOUNDATIONS AND RESEARCH ISSUES Explain the following in...

REVIEW: KNOWLEDGE MANAGEMENT AND KNOWLEDGE MANAGEMENT SYSTEMS: CONCEPTUAL FOUNDATIONS AND RESEARCH ISSUES

Explain the following in summary;

1 a) Taxonomies of Knowledge

b) Knowledge Management Systems

c) Knowledge Creation and related research issues

In: Computer Science

what are some considerations for using cryptography for healthcare data?

what are some considerations for using cryptography for healthcare data?

In: Computer Science

write a simple c program to reverse pairs of characters in a string. For exaple, "notified"...

write a simple c program to reverse pairs of characters in a string. For exaple, "notified" becomes "edfitino". The reversal should be in this order in a simple easy to understand c program.

In: Computer Science

How can B2C e-commerce businesses utilize the Internet to further enhance their CRM initiatives? How can...

How can B2C e-commerce businesses utilize the Internet to further enhance their CRM initiatives?

How can B2B e-commerce businesses utilize the Internet to further enhance their CRM initiatives?

In: Computer Science

Three employees in a company are selected for a pay increase. You are given a file...

Three employees in a company are selected for a pay increase. You are given a file (salaries.txt) that contains three lines. Each line in the file consists of an employee’s last name, first name, current salary, and percent pay increase. For example, in the first line, the last name of the employee is Miller, the first name is Andrew, the current salary is 65789.87 and the pay increase is 5%. Write a program that reads data from the file and stores the output in another file. The output data must be in the following format: FirstNameInitial lastName updatedSalary Format the output of decimal number to two decimal places. For example, the first line in the output may look like the following: A. Miller 69079.36 I want help to solve it on netbeans


java programing language

In: Computer Science

Create an “About Me” HTML webpage. Use the <h2> Tag to give the page a header...

Create an “About Me” HTML webpage.

Use the <h2> Tag to give the page a header with your Full name. The header needs to be in Plum color(Any color other than black, blue – Make the page look good).

The webpage should have a background color that compliments the header color.

Set the content(Anything about yourself!) of the page inside <p> tags and use a different color for it.

Save your file as “AboutMe.html” and upload the file to BB under Exercises/Assignments.

Be as creative as possible !

can you please send me all the codes accordingly so i can use it and for the name and content just use john doe and i'll change accordingly thank you

In: Computer Science