Question: Homework: conversion problems Write code that will solve the following three problems 1 Tribbles (For Star Trek fans) Say that one bar of gold pressed

 Homework: conversion problems Write code that will solve the following three
problems 1 Tribbles (For Star Trek fans) Say that one bar of

Homework: conversion problems Write code that will solve the following three problems 1 Tribbles (For Star Trek fans) Say that one bar of gold pressed latinum is worth twenty thousand federation credits. Say that a tribble is worth 10 credits. Write a program that will ask the user how many bars of latinum they have, and calculate and display how many tribbles that would buy How many bars of gold pressed latinum do you have? Great news That wil1 buy you 5653.9813415 tribbles! (Note: the conversion is not correct. You could round the answer to a whole number) 2 Milk You like bathing in a bathtub full of milk The bathtub holds 40 gallons. The cost of milk is 3.85 a gallon. You always discard the milk after each bath Ask the user how many baths they want to take. Calculate and display how many gallions of milk that takes and how much it would cost. How many milk baths do you want to take? That wi11 take 201.15125 gallons. That wil1 cost 621.0909 do1lars, Note the conversions are not correct. you could round the answers to whole numbers) Homework: conversion problems Write code that will solve the following three problems 1 Tribbles (For Star Trek fans) Say that one bar of gold pressed latinum is worth twenty thousand federation credits. Say that a tribble is worth 10 credits. Write a program that will ask the user how many bars of latinum they have, and calculate and display how many tribbles that would buy How many bars of gold pressed latinum do you have? Great news That wil1 buy you 5653.9813415 tribbles! (Note: the conversion is not correct. You could round the answer to a whole number) 2 Milk You like bathing in a bathtub full of milk The bathtub holds 40 gallons. The cost of milk is 3.85 a gallon. You always discard the milk after each bath Ask the user how many baths they want to take. Calculate and display how many gallions of milk that takes and how much it would cost. How many milk baths do you want to take? That wi11 take 201.15125 gallons. That wil1 cost 621.0909 do1lars, Note the conversions are not correct. you could round the answers to whole numbers)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!