Find Jobs
Hire Freelancers

C++ Program

$30-250 USD

В роботі
Опублікований almost 8 years ago

$30-250 USD

Оплачується при отриманні
This program tests the concepts of: Class Declaration & Definition Function Declaration, Definition and Calling Sorting Arrays Program Objective: Create class named quark which will store the data required to define a quark; name (up, down, charm, strange, top or bottom), charge (+2/3, -1/3, +2/3, -1/3, +2/3, -1/3 e) and mass (1.5-3.3, 3.5-6.0, 1,160-1,340, 70-130, 169,100-173,300 or 4,130-4,370 MeV /c^2). The quark class should be able to get each the member data value and set its mass using both the constructor and a setMass member function. The set function should validate input value. A default constructor should instantiate a quark of the lowest mass possible. Create a program that creates an array of 5 quark objects, sets their values randomly and display the quarks sorted by their mass. Include documentation for your class definition and implementation. Also include an SDM for your demo program.
ID проекту: 10940634

Про проект

Дистанційний проект
Активність 8 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними

Про клієнта

Прапор UNITED STATES
shrub oak, United States
5,0
4
Спосіб оплати верифіковано
На сайті з трав. 12, 2015

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.