| Real Questions | Practice Questions | Syllabus Analysis |
|---|---|---|
| Level 1 Real Questions List | Level 1 Practice Questions List | Level 1-5 Syllabus Analysis |
| Level 2 Real Questions List | Level 2 Practice Questions List | Essential Skills for GESP/CSP Programming |
| Level 3 Real Questions List | Level 3 Practice Questions List | |
| Level 4 Real Questions List | Level 4 Practice Questions List | |
| Level 5 Real Questions List | Level 5 Practice Questions List |
| CSP-XL |
|---|
| 2025 Liaoning CSP-XL Re-examination Real Questions Analysis |
This is a question that returns to the basic level of floating point calculations, reinforcing basic syntax practice.
BCQM3034: Floating Point Calculations for National Day
Problem Requirements
Description
Niuniu has recently studied an introductory C++ course, and the method for calculating the total score is: Total Score = Homework Score × 20% + Quiz Score × 30% + Final Exam Score × 50%Niuniu wants to know what score he can ultimately achieve in this course.
Input
There is only 1 line, containing three non-negative integers A, B, C, representing Niuniu’s homework score, quiz score, and final exam score, respectively. The numbers are separated by a space, and all three scores have a maximum of 100 points. 0 ≤ A, B, C ≤ 100 and A, B, C are all multiples of 10.
Output
There is only 1 line, containing an integer, which is Niuniu’s total score for this course, with a maximum of 100 points.
Input Example
100 100 80
Output Example
90
Problem Analysis
This is a simple weighted calculation problem that can be solved using floating point multiplication.
Sample Code
#include <iostream>using namespace std;int main() { // Declare four integer variables for homework score, quiz score, final score, and total score int A, B, C, d = 0; // Read the three score values cin >> A >> B >> C; // Calculate total score according to weights: homework 20% + quiz 30% + final 50% // Note: Since A, B, C are all multiples of 10, there will be no precision issues d = A * 0.2 + B * 0.3 + C * 0.5; // Output the final total score cout << d; // Program ends normally and returns 0 return 0;}
[Recommended] Mobile Version:[GESP] C++ Certification Learning Resource Summary
[Recommended] Desktop Version:: GESP/CSP Examination Material Website:https://wiki.coderli.com/ A dictionary-style resource organization for easy and quick access.

“luogu- series problems can be evaluated online at Luogu Problem Bank.
“bcqm- series problems can be evaluated online at Programming Enlightenment Problem Bank.