Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions