Write a program that creates an array of structures

Assignment Help Data Structure & Algorithms
Reference no: EM13945260

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: EM13945260

Questions Cloud

Critical decision the organisation must make : Choose an organisation and write a report for the board about a critical decision the organisation must make based on a current situation. Your report should include:
Decimal digits rather than as a percentage : Calculate BSX's ROA for 20X1 [express the ROA as 3 decimal digits rather than as a percentage, so 0.123 not 12.3%. Don't round so both 0.1236 and 0.1234 should be 0.123] ROA:
Describe how plants evolved from seedless to seeds : Descriptions, such as, PCR, STR, gene drift, gene pool, describe how plants evolved from seedless to seeds, non vascular to vascular, logistic growth, exponential growth, describe an actual biome. please use apa.
What was most recent dividend per share paid on the stock : Teder Corporation stock currently sells for $70 per share. The market requires a 7 percent return on the firm's stock. Required : If the company maintains a constant 4 percent growth rate in dividends, what was the most recent dividend per share paid..
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.
Effective change management program : Describe the key elements of an effective change management program. Use at least three unique references. Length: 5-6 paragraphs.
Describe a specific space mission : 2-page report, single spaced, font 12 pts. Times New Roman, and 1 inch margins. Your report should contain a discussion of how anyaspect of what you learned in your visit(s) connects to any class material (Ch. 1 thru 14) covered. Tell me what yo..
Which tissue forms the surface of integumentary system : 1, which tissue forms the surface of integumentary system? why is this tissue well suited to form the surface of integumentary system? 2, what tissue has a solid matrix has an excellent blood supply and works with muscles and tendons and ligaments?
Find five empirical research articles : Research in the University Library to find five empirical (those containing data) research articles. Select articles that are of interest to you andinclude the citations at the end of this document. Place the information for each one in the follow..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Write a program that checks if left and right braces

Write a program that checks if left and right braces, brackets, and parentheses are balanced

  Create long queue-customers dequeue to next counter

Write a program to simulate a grocery store checkout counter. Construct one long queue from which customers dequeue to the next available counter.

  Primitives-remove ambiguities in algorithm-s representation

Describe how the use of primitives helps remove ambiguities in an algorithm's representation.

  Powerpoint presentation with the focus on stress management

Assume you have been asked to help new students identify ways in which they can manage their time so that they can be successful in an online learning environment.

  What is the time complexity of your algorithms in a and b

Suppose you do not know what k is. Give an algorithm to find the largest number in A.

  Short discussion on the concept of cryptography

The answer gives the learner with a short discussion on the concept of cryptography and the different aspects and functions that are provided through using encryption.

  Draw a flowchart for the algorithm

Compute the final answer by rounding the last value to 4 decimal places type the computed value at the bottom of the list and Draw a flowchart for the algorithm below and have it checked by the TA

  Section 1 aims objectives and possible outcomesprovide

section 1 aims objectives and possible outcomes.provide a clear statement of the aims and objectives of the data

  Algorithm to read arbitrary number of data records

Write the algorithm to read arbitrary number of data records, each comprising name, age, and code.

  The heuristic evaluation of a user interface design

principles used in the heuristic evaluation of a user interface design.

  A[0..n-1] and b[0...n-1] are sorted arrays

A[0..n-1] and B[0...n-1] are sorted arrays where each contains n numbers. Design an O(n*log(n)) algorithm to find the median of all elements in arrays X and Y.

  Perform page trace analysis by fifo page removal algorithm

Using the FIFO page removal algorithm, do a page trace analysis indicating page faults with asterisks (*). Then compute the failure and success ratios.

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