Create the appropriate constructor, getters and setters

Assignment Help C/C++ Programming
Reference no: EM13159366

 pseudocode the program first. Include appropriate comments.

  1. Create a string array and add the following names:
    1. Boney, Sam
    2. Inovera, Marge
    3. Moore, Bruno
    4. Steem, Lois
    5. First, Hugo
  2. Display the names in the array, one per line
  3. Sort that array into alphabetical order by last name
  4. Display the names in the array, one per line
  5. Create a second string array; using your imagination to match the following jobs with the names in step 2 and place the job names into the new array in the same order as the sorted name array
    1. Bungi jumping instructor
    2. Caffeine addiction counselor
    3. Statistician
    4. Assertiveness training coordinator
    5. Ice rink manager
  6. Display the job array, one per line
  7. Display the names and their corresponding jobs, separated by 5 space, one name and job per line.
  8. Create a class called Student represented by the following UML:

Student

-lastname: string
-firstname: string
-grade: string

-job: string
-percentage: float

+calcGrade()

  1. Create the appropriate constructor, getters and setters for the class.
  2. Create an instance of Student for each of the students listed above from array. Construct the instance with lastname, firstname, and job.
  3. Ask the user to input a percentage (in the range 00.00 to 100.00) for each student. Store the percentage in the class instance.
  4. Create the calcGrade function to generate a letter grade from the percentage for each student according to the grading stand below. Store the grade in the class instance.

A

93 - 100%

A-

90 - 92%

B+

87 - 89%

B

83 - 86%

B-

80 - 82%

C+

77 - 79%

C

73 - 76%

C-

70 - 72%

D

65 - 69%

F

0 - 64%

  1. Display each instance of the class in this order: First Name, Last Name, Grade, Job.

 

 

Reference no: EM13159366

Questions Cloud

What is sexual revolution : What is sexual revolution? Why do societies control people's sexual behavior? How does sexuality play a part in social inequality?
What mass of neon gas should be introduced : what mass of neon gas should be introduced into an evacuated 0.55 L to produce a pressure of 80 kPa at 30 degrees celsus
Effects of asbestos exposure : Should the asbestos companies be held morally responsible in the sense of being capable of making a moral decision about the ill effects of asbestos exposure?
Price elasticity of demand depends on various factors : Price elasticity of demand depends on various factors. Explain each factor with the help of an example and how how producers equilibrium is achieved with isoquants and isocost curves.
Create the appropriate constructor, getters and setters : Create the appropriate constructor, getters and setters for the class. Create an instance of Student for each of the students listed above from array. Construct the instance with lastname, firstname, and job.
Find mean value of differences for the paired sample data : Suppose you want to test the claim the the paired sample data given below come from a population for which the mean difference is ud=0. The mean value of the differences for the paired sample data.
Describe the function of the golgi apparatus : Describe the function of the Golgi Apparatus and Ribosomes cell structures and say in which primary cell type (i.e. prokaryotic and/or eukaryotic) you will find each cell structure?
Responsibilities of the supply chain manager : In many firms, the title "supply chain manager" identifies the person whose primary responsibility is forecasting and / or sales and operations planning. Based on what you have learned in the class, what should the responsibilities of the supply c..
What is the net present cost for the quik-skwish machine : The annual operating costs increase by 15% each year as the machines age. If the interest rate is 8%, what is the net present cost for the Quik-Skwish machine?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a program for a company named retail-mart

Prompt the user to enter an item name (one word only), a quantity and a price. For this step, in addition to functionality, I'll be looking at: location of the variable declarations; appropriateness of data types selected; appropriateness of the va..

  Write c++ programs

Write a C++ program to accept distance in kilometers, coverts it to meters and then displays the result. Write a C++ program to find area and circumference of a circle.

  Program to add numbers and display sum

For each of problems write C++ code to do the required task. Receive the number and find out whether it is odd or even.

  Develop a simple poker game

Develop a simple poker game

  Function that returns the height of a binary tree

Write a function called getHeight() that returns the height of a given binary tree - CptS 122 Write a function called countSmallerThan() that returns the number of nodes whose values are smaller than the supplied input paramter

  Code to implement a staque

Write a C++ code to implement a Staque. Since the data structure is all about inserting and deleting numbers, it would be a good option to use a linked list to implement Staque.

  Write a driver program called testrationalnumber.cpp

Write a driver program called testRationalNumber.cpp to test each of the above functions and overloaded operators in the RationalNumber class.

  Write c program that forks two child processes

Write a C program that forks two child processes. The parent process will print all prime numbers up to 229, the first child process will print the first 50 Fibonacci numbers.

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Write a bouncing ball video game

The balls bounces within the screen where the two horizontal walls are fixed

  Write program to declare the array of type float

Write down the c++ program which declares the array of 50 components of type float. Initialize array so that first 25 components are equal to square of the index variable.

  Write a webservices application

Write a webservices application that does a simple four function calculator

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