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

  C++ programming uml diagrams

The goal of this lab is to better familiarize you with polymorphism and the factory design pattern, two key components in Assignment

  Prepare a program for a retail-mart company

Prepare a program for a company Retail-Mart.

  Write c program which has parent process and child process

Write a C program that has a parent process, a child process, and a grandchild process. The parent process should print its id and the square or 5.

  Recognition of the problem by the hsbc

What problem did the HSBC face in this case? What people, technology, and the organization factors were responsible for problem? Did HSBC management correctly recognize the problem?

  Write a switch-case programming for calculation

How to use C++ to write a switch-case programming for calculation? Test the program for a wide range of possible inputs including division by zero and square root of negative values.

  Project

Unit 3 Individual Project SSCI210 – 1304B – 01 A typical individual who commits who commits hate crimes whether it is against or aimed at the Gay/lesbian community , the persons of color or the Jewish community, ( I mention these three because they a..

  Program to output value of tenth component of array

Write a C++ statements to perform the following: Set value of fourth component of array alpha to three times  value of eight component minus 57.

  Calculate the component voltages

Calculate the component voltages for the following series resonant RLC circuit

  Write c program to accept inputs from user

Write down simple c program which accepts following inputs from user that is username and password, it must ask user what he will like to learn today and also ask user to enter char m=math , e= English.

  Write a program to calculate students average test scores

Write a program to calculate students average test scores

  Program to check compatibity for matrix multiplication

Write down program in C++ for matrix multiplication. Program must accept dimension of both matrices to be multiplied and check for compatibity.

  Uml diagram of all the classes

Speaking of converting into the correct object-type, the goal of the factory is to abstract away object creation.

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