Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIT-111 HW #3 Complete assignment in image 1 below and provide java source code that complies cleanly!*** In the second image is a fill out

CIT-111 HW #3 Complete assignment in image 1 below and provide java source code that complies cleanly!***
In the second image is a fill out the catagories in the paper, that includes Problem statement, assumptions, input, outputs, tests, and a psuedo code.
Image 3 is an template provided on psuedo code on how to aprroach the child height problem. image text in transcribed
image text in transcribed
image text in transcribed
Ingert Table Chart Text Shane Media Cm 00 Collaborate Child Height: One way to estimate the adult height of a child is to use the following formula, which uses the height of the parents. All heights are in Inches: Height of male child = ((MotherHeight x 13.0/12.0) + FatherHeight)/20 Height of female child = ((Father Height x 12.0/13.0) + Mother Height)/2.0 Document an algorithm (problem statement, assumptions, input, output, test plan, pseudo-code) and write a Java program that takes as input: the gender of the child (male or female) the height of the mother in feet and inches (separate values, whole numbers), and the height of the fattlerin feet and inches Make sure that the gender input value matches what you expect, and that height values are zero or positive values. If not, display an error message and request the user to start over Output the estimated height of the child in feet and inches. The program should allow the user to enter a new set of values and output the predicted height for another child until the user decides to exit Include appropriate comments such as the problem statement/assumptions/input/output (from your algorithm documentation) as well as statements needed to demonstrate your program is following your pseudo-code CIT111 Homework 43: Flow Control in Java Submit your algorithm documentation (Word or PDF format) and Java source code file via Blackboard for this problem. Be sure that your Java source code compiles cleanly or you will receive no credit. Student Name: Class/Section: HW/Assignment: CIT-111 I PROBLEM STATEMENT: ASSUMPTIONS: INPUT: OUTPUT: TEST PLAN of POSITIVE RESULTS (Inputs, expected results - remember boundary conditions) 1 Test 1.1 2 Test 1.2 3. Test 1.3 TEST PLAN of NEGATIVE RESULTS (inputs that should not result in desired results) 1 Test 2.1 2 Test 2.2 3. Test 2.3 ALGORITHM (Pseudo-code) . Craps Game: Flow Control Template Initialize Variables DO loop for input of number of games (1-1000) o Prompt User o Get number O IF number out of range THEN print error message WHILE number is out of range . FOR loop to simulate playing a number of Craps games o Roll dice for come-out roll o IF a win on come-out roll THEN Update count of # of wins O IF no decision (not a win or loss) on come-out roll DO loop for playing until a win or loss Roll dice . . . IF a win THEN Update count of # wins WHILE not a win or a loss . Calculate win percentage (# wins/#games played Output percentage

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago