Find Jobs
Hire Freelancers

Easy ones

$30-5000 USD

Dokončeno
Zveřejněno před více než 21 roky

$30-5000 USD

Zaplaceno při doručení
Program 1 If the number is even, divide it by 2. If the number is odd, multiply it by 3 and then add 1. For example, if the original number were 13, the algorithm would generate the following sequence of numbers: 13, 40, 20, 10, 5, 16, 8, 4, 2, 1. This sequence has 10 terms counting the original number and the 1. Write a program that accomplishes the following three functions: Prompts the user for a positive integer input, or a zero to exit. This prompt should be repeated if the user enters a negative number. Outputs all the numbers in the sequence produced by the Ulam algorithm. Counts how many numbers are in the sequence, and outputs the count. ------------------------------------------------------- Program 2 A standard science experiment is to drop a ball and see how high it bounces. This establishes a "bounciness" index equal to the original height divided by the bounce height. The bounciness index is between 0 and 1 (including 0 but not including 1). This index is independent of the original height. For example, if the original height were 10 feet and the bounciness index were 0.6, the height of the first bounce would be 6 feet (10 * 0.6); and the height of the second bounce would be 3.6 feet (6 * 0.6). The total distance traveled on a bounce is the distance down plus the bounce up. Write an interactive program that accomplishes the following three functions: Gets the height and bounciness from the user. The height must be at least 0 and the bounciness must be equal to or greater than 0 and less than 1. You must error check both of these inputs. Calculates the total distance that the ball travels in 100 bounces and finds the height of the final bounce. ## Deliverables 1) Complete and fully-functional source code. 2) Need it ASAP. ## Platform Pascal Delphi 6 ## Deadline information I need it by tomorrow Sunday the 6th.
IČ projektu: 2874565

O projektu

6 nabídky
Vzdálený projekt
Aktivní před 22 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
Uděleno:
Avatar uživatele
See private message.
$3 USD v 14 dnech
5,0 (17 recenze)
3,5
3,5
6 freelanceři nabízejí v průměru $14 USD za tuto práci
Avatar uživatele
See private message.
$12,75 USD v 14 dnech
5,0 (33 recenze)
5,2
5,2
Avatar uživatele
See private message.
$21,25 USD v 14 dnech
4,9 (36 recenze)
5,2
5,2
Avatar uživatele
See private message.
$21,25 USD v 14 dnech
4,5 (6 recenze)
3,2
3,2
Avatar uživatele
See private message.
$12,75 USD v 14 dnech
5,0 (3 recenze)
1,4
1,4
Avatar uživatele
See private message.
$12,75 USD v 14 dnech
0,0 (0 recenze)
0,0
0,0

O klientovi

Pochází z GERMANY
Grafenw?hr, Germany
5,0
6
Členem od zář 25, 2002

Ověření klienta

Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.