Question: 1. Please write a C++ program to display the star pattern on the American flag. In this program, you don't have to define a class,
1. Please write a C++ program to display the star pattern on the American flag. In this program, you don't have to define a class, just use the main function and some user defined functions, if you choose to do so. It can be named as stars.cpp
2. Write a C++ program to input 10 scores (range from 0-100), calculate the average, then display the student's name, and a letter grade such as A, B, C, D, or F. It shall have a Student class with necessary private data members and constructor and public methods, such as getName, getGrade, calcScore, convertToGrade, etc. Try to create a Student object in main(), then invoke its methods to perform the tasks. You may choose to put everything in one cpp file, or to separate the declaration and definition of Student class, then you need to submit 3 files: the main app, Student.cpp and Student.h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
