Find Jobs
Hire Freelancers

C++ Programming Needed

$30-250 AUD

Завершено
Опублікований almost 12 years ago

$30-250 AUD

Оплачується при отриманні
I am studying C++ for personal interest and found that this program is very confusing. Just for my personal satisfaction i want this program completed so i can study it myself and thus further my knowledge in C++. I am willing to pay what is needed for completion before sunday afternoon. Thank you for your help and consideration 1. Write a function calculateItemCost prototyped by double calculateItemCost(double itemPrice, char discountType, unsigned quantity); so that the execution of this function will return the price for quantity number of the item priced originally at itemPrice each, and currently discounted according to discountType. For instance, calculateItemCost(10.90, 'D', 2) will return 17.44 because 17.44=10.9*0.8*2. Likewise calculateItemCost(5.50, 'B', 4) will return the value 19.8=5.50*0.9*4. 2. Write a function displayTotalCost prototyped by void displayTotalCost(double totalCost, unsigned recordNum, bool aborted); so that the execution of this function will first display the total sale cost stored in variable totalCost and the total number of sale records stored in recordNum. If aborted is true, then the function will also display an error message to the effect "Input terminated by invalid data at record" followed by the corresponding record value. For example, displayTotalCost(55.55, 3, false) could just display Total sale cost (3 records) = $55.55 while displayTotalCost(66.66, 7, true) could display Total sale cost (7 records) = $66.66 Input terminated by invalid data at record 8. 3. Write a function readSaleRecord prototyped by int readSaleRecord(unsigned & itemId, double & itemPrice, char & discountType, unsigned & quantity); so that the execution of this function will retrieve 4 fields, i.e. the item ID itemId, the original item price itemPrice, the discount type discountType and the quantity quantity, from the stdin device. The returned value will be 0 if the reading has been successful, and will be non-zero if otherwise. In fact, when the record is not successfully read, the returned value will be 1 if it's due to receiving 0 for the item ID or hitting the EOF, and will be -1 if otherwise. Enter -> item ID: 101024 -> full item price: 199.95 -> discount type: D -> quantity: 1 Complete the rest of the program. Below is the screenshot of executing a possible implementation. Enter -> item ID: 101023 -> full item price: 149.95 -> discount type: B -> quantity: 1 Enter -> item ID: 101024 -> full item price: 199.95 -> discount type: D -> quantity: 1 Enter -> item ID: 100001 -> full item price: 19.99 -> discount type: N -> quantity: 5 Enter -> item ID: 100002 -> full item price: 39.99 -> discount type: N -> quantity: 2 Enter -> item ID: 103067 -> full item price: 1999 -> discount type: T -> quantity: 1 Enter -> item ID: 0 Total sale cost (5 records) = $1874.15
ID проекту: 1670952

Про проект

12 пропозицій(-ї)
Дистанційний проект
Активність 12 yrs ago

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

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

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
Hi,kindly check your inbox for my inquiries. Thanks.
$30 AUD за 1 день
4,9 (90 відгуки(-ів))
5,4
5,4
12 фрілансерів(-и) готові виконати цю роботу у середньому за $59 AUD
Аватарка користувача
I'm an experienced C++ Programmer and I can easily finish this project
$30 AUD за 1 день
5,0 (34 відгуки(-ів))
5,1
5,1
Аватарка користувача
Hi, this is an easy assignment. I can do this quickly.
$30 AUD за 1 день
5,0 (2 відгуки(-ів))
4,0
4,0
Аватарка користувача
Hi, I can start it right now. I can easily do it, and I will surely give you the result by Sunday afternoon. I will wait for you. Regards.
$35 AUD за 1 день
5,0 (3 відгуки(-ів))
3,7
3,7
Аватарка користувача
Hello. I can help you in no time.
$30 AUD за 1 день
5,0 (2 відгуки(-ів))
2,2
2,2
Аватарка користувача
Hi, I read your complete statement and can complete this assignment. Check PM for details. Thank you.
$30 AUD за 1 день
5,0 (1 відгук)
1,6
1,6
Аватарка користувача
Hello, I can do this work easily
$100 AUD за 2 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
it is so simple i can handle it simply
$50 AUD за 3 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
Hi check PM
$50 AUD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
C++ programming is easy for me. just done migrating c++ code to some other tech.
$50 AUD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
PLEASE SEE PM
$170 AUD за 3 дні(-в)
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
Please check your PM.
$35 AUD за 0 день
0,0 (0 відгуки(-ів))
0,0
0,0
Аватарка користувача
hi bro please do check you PM thanks
$100 AUD за 0 день
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор AUSTRALIA
sydney, Australia
5,0
5
На сайті з трав. 31, 2012

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

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