Write a function that will print all of the clients

Assignment Help Other Subject
Reference no: EM132178398

I WANT THE PROGRAM IN C++ AND WHICH IS EXACTLY IN "TONY GADDIS" TEXTBOOK. PLEASE PLEASE SOLVE IT CORRECTLY.

Lab Purpose

Defining structures, arrays of structures, manipulating structures.

Always bring to class

1. Gaddis' book, How-to handouts from Canvas and your class notes.

2. This assignment sheet & the grade sheet for this lab already printed out.

3. USB Flash drive(s) or other storage media. Mandatory Instructions

1. Copy data file lab3.txt from the class library. $ cp lib/lab3.txt . ? That is a space and period

2. Declare a struct called Shareholder that will hold shareholder name, type of shares, and the number of shares. Also declare an array of Shareholder structs called ClientList. Although there are 50 elements in the array, the array will not be entirely filled. You will need to use a variable called numclients to process the data.

Your mission, should you decide to accept it, is to write the functions for which prototypes have been provided below:

a) The fillArray function that will read data file, lab3.txt and populate your array of structs. Sample data for a shareholder is shown below (name, type of shares, and number of shares). Matt Johnson

Gold

52

b) Write a function that will print all of the clients that fit a particular share category. Additionally print the top shareholder for that category. Declare any variables you will need, however, there is a constraint you must follow: you are only allowed to use one loop per function.

Keep calling this function from main() as long as user does not enter Done. You must validate user input and only accept Gold, Silver, Bronze, or Done (exactly as shown).

c) Create a function that will display a breakdown of the assets for each share type. You are only allowed to use one loop. Call this function once after the user entered ‘Done'.

a. Gold Shares are valued at 9.65 per share

b. Silver Shares are valued at 4.75 per share

c. Bronze Shares are valued at 1.85 per share Run the program and test with each share types: Gold, Silver, and Bronze

Reference no: EM132178398

Questions Cloud

Which one would you select and why : You want to protect your wireless network but due to hardware limitations on the access point infrastructure you can only implement one of these protections.
Write a complete mips program to toggle the case : Write a complete MIPS program to toggle the case of all alphabetic characters in a C-string held in RAM in your program.
Create an array of 5 elements and put the numbers : The numbers will be randomly generated. However, I also want to check to see if any of the numbers are repeated.
Design any gui that you wish the only requirement is : Design any GUI that you wish the only requirement is that it must have UI Controls and Action Events (e.g., Button and/or Mouse events and/or Key presses).
Write a function that will print all of the clients : Write a function that will print all of the clients that fit a particular share category. Additionally print the top shareholder for that category.
How does this impact maries instruction format : We want to add 8 more instructions to MARIE so that there are a total of 23 instructions. How does this impact MARIE's instruction format?
Create a music sharing class for a application design : Create a music sharing class for a application design using visual basic how do I get started creating class and derived class for the music class.
Write the main program and delay subroutine for this task : The continuous square wave has the period of 0.1sec: 5V output for 0.05sec and 0V output for 0.05sec assuming 24MHz bus clock.
Create a class called person including first name : Create a class called person including first name and last name as string and idnum as an integer. The class should contain a default constructor setting.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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