Write a program that creates an array of structures

Assignment Help Basic Computer Science
Reference no: EM13897453

Write a program that creates an array of structures of type Student. The structures must include the following data members (it can have more!):

a. A string to hold a first name of no more than 10 characters;

b. A string to hold a middle name of no more than 10 characters;

c. A string to hold a surname of no more than 20 characters;

d. A string to hold the class of the student(ie., freshman,sophmore,etc.-you decide the length);

e. a float to hold the gpa of the student;

f. A char to hold the gender of the student;

g. An array of 4 floats to hold the four test scores of the students;

h.A double to hold the average of the four scores

In main declare an array of 20 of these structures. Next send each individual member of the array to a function to be initialized(do NOT send the entire array) You may calculate the average of the four integers from this function, if you wish, or you may call another function to perform this function, you MUST send the ENTIRE ARRAY to this output function!

Two last notes: you may use either C-strings or the C++ strings class to represent strings. and second REMEMBER TO USE SYMBOLIC CONTANTS.

Reference no: EM13897453

Questions Cloud

Physics laws applied to electro-magnetism : Let's discuss examples of Physics Laws applied to Electro-Magnetism e.g. besides that of Ohm's Law which is the most widely know, what about Faraday's Law? Are there others? Let's discuss..
Disagree about historical events in films : Although historians might disagree about historical events in films, does this discredit historical films if the audience comes away with deeper emotions, feelings and understanding, as well as the devastation and affect of that event in history?
Write application to allow user to enter a list of integer : Control flow: two sum problem. Write an application to allow user to enter a list of integers, ends the input once the user enter 0. Then ask user to enter a target number, which should be an integer too. Then go through the list of integers, find tw..
Question regarding the mythical counterparts : Identify some people you consider real or personal heroes. What characteristics do your contemporary heroes share with their mythical counterparts? Does this make them mythological heroes? Explain why or why not.
Write a program that creates an array of structures : Write a program that creates an array of structures of type Student. The structures must include the following data members (it can have more!): a. A string to hold a first name of no more than 10 characters; b. A string to hold a middle name of no ..
What is your definition of a hero : What is your definition of a hero? What kinds of things do heroes do that ordinary people do not do? Why do you think they do those things?
Describe one (1) it position : Describe one (1) IT position that you currently hold or would like to hold in the future. Next, explain whether or not you believe obtaining certifications would help you in the position in question. If so, determine the certifications that you belie..
Main points of the article : What did the author say about war films? (Ideas) What are the main points of the article?
Shape of the education employment landscape : Education is often considered a recession proof industry. In todays changing landscape, discuss whether or not education jobs are at risk of being off-shored or outsourced. What forces change the shape of the education employment landscape. What c..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Collaboration

Collaboration

  Running total of the number of bugs collected

A bug collector collects bugs every day for seven days. Design a modularized program that keeps a running total of the number of bugs collected during the seven days. The loop should ask for the number of bugs collected for each day, and when the loo..

  Highlights the important elements

You have just completed ten (10) weeks of an introduction to networking course. Imagine your organization has asked you to create a one-day training course that highlights the important elements of what you have just learned within the past ten (10) ..

  Explain it ethics and responsible conduct

Specify the main reasons why green computing should be part of any organization's social responsibility posture. Next, propose three (3) actions that IT organizations could take to reduce their carbon footprint.

  Indentify a network topology

indentify a network topology that would best suit each of the following environments and explain why: dormitory floor univeristy campus airport state of province

  Create a column of integers 1 through 30

In the next three columns show how each value is represented using the binary, octal, and hex number systems. Identify when and why each of the each three numbering systems is used ?

  Design a ram chip

Design a RAM chip that is 128K x 8. For each sub-part below, show the array of RAM cells and its dimensions, the decoder(s) required to access the array, and tabulate the numbers of gates required to implement the decoding.

  What does this sequence of statements print

What does this sequence of statements print?                                                       String msg = "The number of characters in newCar is"; String newCar = "GMC";

  Mips assembly program

MIPS Assembly Program: Help writing this function

  Which interfaces will receive internet work broadcasts

Which interfaces will receive internet work broadcasts.

  Activity diagram of each step of ordering pizza

Draw an activity diagram representing each step of the process; from the moment you pick up the phone to the point where you are eating the pizza.

  Examples of the three types of cost estimates

Describe and present real world examples of the three types of cost estimates and where you would find them in the context of the PMBOK process groups

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd