Assignment 8

 

 

 

#include <iostream.h>

#include <stdlib.h>

#include <iomanip.h>

void main(void)

{

int sc1 = 75, sc2 = 68, sc3 = 81, sc4 = 86, sc5 =90;

float avg;

avg = sc1 + sc2 + sc3 + sc4 + sc5;

avg = avg I 5.;

cout <<“The scores are: “ <<sd <<“,“<<sc2 <<“,“ <<sc3 <<“,“ <<sc4<<”,”<<sc5<<”\n”;

cout <<“The average score is: “ <<avg;

cout <<“\n”;

}