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

  Draw the pipeline execution diagrams

In snippet A, the branch is taken twice and then not taken. In snipped B, first branch is taken once and second branch is also taken once.

  What is a peer-to-peer network

Explain what is a peer-to-peer network and the advantages and disadvantages a peer-to-peer network has over server based networks.

  Let the predicate

11. Let the predicate ">" be defined as follows: Let a and b be integers. "a > b" if and only if a = b + k where k is an integer > 0. Using only this definition, prove that ">" is transitive, i.e., if x, y, and z are integers and x > y and y >..

  What input function is used to read a single character

What functions are used instead of the >> and

  Security and ethical concerns in web-based tool

How could you use a wiki to collaborate with fellow students to improve this course? What security and ethical concerns would you have to consider if you implemented this classroom wiki?

  Network lan and the wan links

Use VLSM to configure the given network LAN and the WAN links. VLSM must be used in the MOST efficient way to subnet the LAN and the WAN links. All the links between routers are WAN links.

  Design of e-business applications

With that in mind, how do you think the Americans with Disabilities Act affects website design and design of E-business applications?

  Evaluate the efficiency and effectiveness of the process

Evaluate the efficiency and effectiveness of the process selected in Week Two using the data collected. Determine areas for improvement

  Why is it that security mechanisms are still needed

If IPSec provides security at the network layer, why is it that security mechanisms are still needed at layers above IP?

  Variables-constants and data types

Document the steps for the logic structure to capture the payment information. This can be done as either a flowchart or pseudocode. Be sure to include inputs, variable declarations and assignments, and outputs.

  Implement unsigned 8-bit multiplication and division algorit

Implement unsigned 8-bit multiplication and division algorithms in MIPS assembly language. You need to follow the multiply and divide algorithms as given in the textbook or the slides. You must NOT use any MIPS multiplication or division instru..

  Revisiting the deployment diagram

The only thing constant in the information technology landscape is that things always change. Such is the case for the textbook ordering system you examined in the previous unit.

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