ChatGPT battles college entrance examination composition, let's see how it is written

introduction

Since the composition topic of the college entrance examination came out last time, many people expressed emotion when they saw the first paper of the college entrance examination. Indeed, the topic this time is indeed very attractive

人们因技术发展得以更好地掌控时间,但也有人因此成了时间的仆人。
What kind of association and thinking did this sentence arouse in you? Please write an article. ------2023 Volume A

Everyone in the programming area, I don’t know if you have any thoughts on the development of technology. You can communicate in the comment area.
Today we will give this topic ChatGPTto see how he thinks

Practical

composition analysis

How to write a good composition is indispensable, 作文的分析let’s see how GPT analyzes it

  • conception:为何在技术高度发达的今天,我们有些人仍然成为时间的奴隶?
  • angle:探讨技术发展如何影响人们对待时间的态度,以及如何避免成为时间的奴隶。
  • Style:议论文

Q&A from GPT

writing guide

When writing, you may have some questions, the following is what GPT wrote for you 写作指导, you can take a look

The guidance is as follows:
Angle: 时间管理与社会发展的关系
Concept: 技术进步不应成为我们沉迷于工作的借口,我们应该更好地掌控时间,生活才能更加充实。
Style: 议论文
Title:技术进步下的时间管理:掌控时间还是被时间掌控?

insert image description here

composition

让GPT根据如上需求,写一个议论文,字数800左右
Time management is a very important skill for modern man. We must maintain a balance of productive work and adequate rest to maintain physical and mental health. As technology advances, many apps can help us plan our time better and increase our productivity, but these tools can also keep us stuck in the trap of becoming obsessed with work. Therefore, we need to seriously think about how to balance work and life to achieve better time management.

First, we can use technological tools to manage our time. In modern society, many of us use our smartphones to plan our schedules, set reminders, create to-do lists, etc. These features help us plan our time better. At the same time, many companies today use various software and applications to manage time and enable employees to complete tasks more efficiently. These technologies inspire us to manage our time effectively. At the same time, we can also use workplace planning to better manage time, including making priority lists, using time-blocking techniques, keeping time clocks, and more.

Second, we should also avoid blindly indulging in work. In daily life, people are often overwhelmed by a lot of work. Although we use technological tools to improve efficiency, we also need to be alert to the negative impact of the abuse of technology. In fact, many people continue to work after their working hours are over. This practice is obviously unhealthy and can easily lead to stress, fatigue and, in severe cases, even mental health problems.

Thirdly, we must balance work and life. We need to make the most of our holidays and weekends to rest and entertain ourselves. In free time, we can participate in some cultural and sports activities, travel or explore new areas. In addition, we should also realize the importance of sports and exercise. In sports, we can release tension and stress, maintain our health, and thus better cope with the challenges of work and life.

Finally, let's be clear: time management is an important skill, and we should try to find a work-life balance as much as possible. While modern society provides us with many useful tools, truly effective time management is something we do ourselves. Through technological tools and routine lifestyle changes, we can take control of our time and better manage our lives and work.

To sum up, we should use technological tools and a healthy lifestyle to balance life and work. We must avoid being consumed by busyness, but should pay attention to life and physical health, so as to better cope with the challenges in work and life.insert image description here

Benefits at the end of the article: student management system

Achieve highlights

界面简洁, Each time a function is operated, the screen can be cleared once, and only the function prompt text is kept;

排序功能实现了多种排序方式: Single subject sorting and total score sorting

统计功能实现了平均分、及格人数、标准差等数据的统计

输出新文件时可以新建文件名,保存路径,输出文件同时统计数据: Including the average score of the total score, the number of passers, the standard deviation, etc.;

#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>

using namespace std;

//定义学生结构体
struct student {
    
    
    string name;
    int score1;
    int score2;
    int score3;
    int total_score;
};

//添加学生信息
void addStudent(vector<student>& students) {
    
    

    student new_student;
    
    cout << "请输入学生姓名:";
    cin >> new_student.name;
    
    cout << "请输入" << new_student.name << "的三个成绩(以空格分隔):";
    cin >> new_student.score1 >> new_student.score2 >> new_student.score3;
    
    new_student.total_score = new_student.score1 + new_student.score2 + new_student.score3;
    
    students.push_back(new_student);
    
    cout << "添加成功!" << endl;
}

//显示学生信息
void showStudent(const student& s) {
    
    
    cout << s.name << "\t" << s.score1 << "\t" << s.score2 << "\t" 
         << s.score3 << "\t" << s.total_score << endl;
}

//显示所有学生信息
void showAllStudents(const vector<student>& students) {
    
    
    cout << "姓名\t科目1\t科目2\t科目3\t总成绩" << endl;
    
    for (const auto& s: students) {
    
    
        showStudent(s);
    }
}

 //按照科目一进行排序
bool cmpScore1(const student& a, const student& b) {
    
    
    return a.score1 > b.score1;
}

//按照科目二进行排序
bool cmpScore2(const student& a, const student& b) {
    
    
    return a.score2 > b.score2;
}

//按照科目三进行排序
bool cmpScore3(const student& a, const student& b) {
    
    
    return a.score3 > b.score3;
}

//按照总成绩进行排序
bool cmpTotalScore(const student& a, const student& b) {
    
    
    return a.total_score > b.total_score;
}

//单科成绩排序
void sortBySubject(vector<student>& students) {
    
    
    int subject;
    
    cout << "请选择要排序的科目(1-3):";
    cin >> subject;
    
    switch(subject) {
    
    
        case 1:
            sort(students.begin(), students.end(), cmpScore1);
            cout << "按照科目一排序成功!" << endl;
            break;
        case 2:
            sort(students.begin(), students.end(), cmpScore2);
            cout << "按照科目二排序成功!" << endl;
            break;
        case 3:
            sort(students.begin(), students.end(), cmpScore3);
            cout << "按照科目三排序成功!" << endl;
            break;
        default:
            cout << "请输入正确的科目编号!" << endl;
    }
}

//总成绩排序
void sortByTotalScore(vector<student>& students) {
    
    
    sort(students.begin(), students.end(), cmpTotalScore);
    cout << "按照总成绩排序成功!" << endl;
}

//计算平均分
double calcAverageScore(const vector<student>& students) {
    
    
    int total_score = 0;
    int num_of_students = students.size();
    
    for (const auto& s: students) {
    
    
        total_score += s.total_score;
    }
    
    return (double)total_score / num_of_students;
}

//计算及格人数
int calcPassCount(const vector<student>& students) {
    
    
    int count = 0;
    
    for (const auto& s: students) {
    
    
        if (s.score1 >= 60 && s.score2 >= 60 && s.score3 >= 60) {
    
    
            count++;
        }
    }
    
    return count;
}

//计算标准差
double calcStandardDeviation(const vector<student>& students) {
    
    
    double total_score = 0.0;
    double average_score = calcAverageScore(students);
    int num_of_students = students.size();
    
    for (const auto& s: students) {
    
    
        total_score += pow(s.total_score - average_score, 2);
    }
    
    return sqrt(total_score / num_of_students);
}

//保存学生数据到文件
void saveDataToFile(const vector<student>& students) {
    
    
    string file_name, save_path;
    
    cout << "输入新文件名:";
    cin >> file_name;
    
    cout << "输入保存路径:";
    cin >> save_path;
    
    ofstream output_file(save_path + "\\" + file_name);
    
    output_file << "姓名\t科目1\t科目2\t科目3\t总成绩\n";
    
    for (const auto& s: students) {
    
    
        output_file << s.name << "\t" << s.score1 << "\t" << s.score2 << "\t" 
                    << s.score3 << "\t" << s.total_score << endl;
    }
    
    double average_score = calcAverageScore(students);
    int pass_count = calcPassCount(students);
    double standard_deviation = calcStandardDeviation(students);
    
    output_file << "总成绩平均分:" << average_score << endl;
    output_file << "及格人数:" << pass_count << endl;
    output_file << "总成绩标准差:" << standard_deviation << endl;
    
    output_file.close();
    
    cout << "文件保存成功!" << endl;
}

int main() {
    
    

    vector<student> students;
    
    while(true) {
    
    
        cout << "1.添加学生信息" << endl;
        cout << "2.显示所有学生信息" << endl;
        cout << "3.按照单科成绩排序" << endl;
        cout << "4.按照总成绩排序" << endl;
        cout << "5.计算平均分" << endl;
        cout << "6.计算及格人数" << endl;
        cout << "7.计算标准差" << endl;
        cout << "8.保存数据到文件" << endl;
        cout << "9.退出程序" << endl;
        
        int choice;
        cin >> choice;
        
        switch(choice) {
    
    
            case 1:
                addStudent(students);
                break;
            case 2:
                showAllStudents(students);
                break;
            case 3:
                sortBySubject(students);
                break;
            case 4:
                sortByTotalScore(students);
                break;
            case 5:
                cout << "平均分为:" << calcAverageScore(students) << endl;
                break;
            case 6:
                cout << "及格人数为:" << calcPassCount(students) << endl;
                break;
            case 7:
                cout << "标准差为:" << calcStandardDeviation(students) << endl;
                break;
            case 8:
                saveDataToFile(students);
                break;
            case 9:
                cout << "程序已退出!" << endl;
                return 0;
            default:
                cout << "请输入正确的数字!" << endl;
        }
        
        cin.ignore(1024, '\n');
        cout << "按Enter清屏" << endl;
        getchar();
        system("cls");
    }
    
    return 0;
}

Summarize

So, which article do you think is well written? How many points can they get for a composition with a full score of 60 points?

Guess you like

Origin blog.csdn.net/qiuweichen1215/article/details/131177152