Answer to Question #1793 in Programming & Computer Science for hussain

Question #1793
Question – 2
Task 1
You are required to automate the process of converting light years to inches. The speed of light is 300,000km/sec. (A light year is the distance light travels in one year)
1 km = 1000 m
1m = 1000 mm
1 inch = 25.4 mm

Design a solution using Pseudo Code and write a program according to the design.


Task 2
Write a program that will help the driver of a truck that delivers and picks up compressed gas cylinders to determine the contents of the cylinder based on the colour of the cylinder. The program will print out a menu of colours to be entered. The user should then be instructed to enter the first letter of the colour of the tank. Upon reading the letter corresponding to the colour of the tank the program will print a message which states the contents of the tank. The program should accept the letter in either lower case or upper case.
Have the program print a message prior to ending such as “Glad to be of service”. If the user enters a colour not in the list the ending message should b
1
Expert's answer
2011-03-07T06:51:14-0500
Unfortunately, your question requires more work than to be done for free. You can submit it as an assignment to our control panel set the deadline and our programmers will assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS