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

  Perform dynamic address translation

Perform dynamic address translation

  Under what circumstances would you want to convert a text

Why do you think you would want to count variables and words in a string? Provide an example. Under what circumstances would you want to convert a text string to a numerical data? Provide an example. provide specific examples please.

  Article relevant to current social engineering threats

Select an article relevant to current social engineering threats.

  Identify and outline the function of digital certificates

Explain the concepts of encrypting data and securing e-mail transmissions

  Features of organization to make and use information systems

Write down the features of organizations do managers require to know about to make and use information systems successfully?

  Allow different payment and shipping options

allow different payment and shipping options. There are a plenty of examples of this kind of web sites. Some well-known ones are amazon.com, Barnes & Nobles, and Borders.

  Program that will implement a binary search

Write a program that will implement a binary search. You program should store 40 numbers. The 40 numbers will be initialed in an array (See Below). Your program should read in each number, call a binary search, and Indicate if the number is found ..

  Write program that will calculate square and cube of numbers

Write a program that will calculate square and cube of numbers ranging from 0 to 10. Print the output like the following table (hint: use for loop, to print as a table use printf formatting for width).

  Calculate the cost and schedule variances

Calculate the cost and schedule variances and indexes for Tasks A, B, C, D, and E.(b) As project manager, write a brief summary of the status of the project at this time.

  Cultural-political or geo-economics challenges affect

How might cultural, political, or geo-economics challenges affect a global company's use of the Internet? Give several examples.

  Advantages of logging more information to alerts file

What are the advantages of logging more information to the alerts file? What are the disadvantages of logging more information to the alerts file?

  What is the size of a char and a string

What are the sizes in memory of other data types in C++? I mean, I know that a double is 8 bytes and an int is 4 bytes. What is the size of a Char and a String?

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