Find Jobs
Hire Freelancers

C++ Array

$1-6 USD

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

$1-6 USD

Оплачується при отриманні
Write a program that reads in two numbers from the keyboard. (The program should ask the user to enter the numbers.) (The two numbers are on separate lines. Let's assume the first number is K and the second number is M.) PART 1: The program should store the following sentence in an array of characters: I LOVE COMPUTER SCIENE The program should send the K-th letter of the sentence to the screen M times. For example, if the numbers are K=3 and M=5 the program should send to the screen: LLLLL because L is the 3rd letter, and we asked to get it 5 times. Your program should assume that the input will be numbers, but it might contain "unreasonable numbers". Thus, if the input is a negative number, it should give an error message. If K is greater than 22, it should give an error message. If M is greater than 80 or equal to 0 or negative, it should give an error message. All error messages should be polite and informative. NOT just: Invalid Input. PART 2: As the last step, write a function ISPRIME with one integer argument that returns TRUE if the argument is a prime number. Then call this function from your main program with K and M as arguments: ISPRIME(K) ISPRIME(M) and print a friendly message informing the user that the number K (M) is or is not a prime number. ## Deliverables Please Comment all work done. 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Must complie on UNIX with g++ or similar.
ID проекту: 3230173

Про проект

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

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

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

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
Доручений:
Аватарка користувача
See private message.
$3 USD за 2 дні(-в)
4,9 (94 відгуки(-ів))
4,3
4,3
2 фрілансерів(-и) готові виконати цю роботу у середньому за $4 USD
Аватарка користувача
See private message.
$5,10 USD за 2 дні(-в)
4,9 (212 відгуки(-ів))
5,8
5,8

Про клієнта

Прапор UNITED STATES
United States
5,0
3
На сайті з квіт. 21, 2004

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

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