Question
C++ Objectives: Become familiar with C++ syntax. Become familiar with calculations using C++ programming language. Instructions (10 points): Please complete the following exercise. Upload lab
C++
Objectives:
Become familiar with C++ syntax.
Become familiar with calculations using C++ programming language.
Instructions (10 points):
Please complete the following exercise.
Upload lab #1 to the appropriate drop box in Angel.
Use the following naming convention: [Name]_lab1.cpp
Write a program that will:
Use a comment to write your name, the lab number, and a brief description of what your program will do.
Write a line of code that prints your name, for example My name is Fred Flintstone.
Ask the user to enter in five grades.
Calculate the average for the five grades entered and output the average to the screen.
Ask the user to enter in two whole numbers and output the whole number part and the remainder when the first number is divided by the second. This can be done using the operators / and %.
Output:
My name is John Doe
Enter in five grades: 95 75 85 99 100
The average of the five grades: 90.8
Enter in two whole numbers: 8 5
The whole number part of 8 and 5: 1
The remainder part of 8 and 5: 3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started