Using a Single-Array, create a program that asks the user to input a day of the week, the high temperature, and the low temperature. Calculate the Average High and Low.
hhagood
0
Newbie Poster
Recommended Answers
Jump to PostYou need to at least try to write the program. We'll help you, but we won't do it all for you. If you were awake during class or read some of the book, then you should have learned something about creating a class with a "main" method in it. Start …
Jump to PostWhat Jeff said. You'll need to read into getting input, declaring variables (such as a String array), using arrays, and outputting results. We won't do your homework for you.
Jump to PostSee what you can come up with and ask specific questions about what you are having trouble with. What you posted above is a direct copy of code you found elsewhere, so that's not going to cut it.
Jump to PostSo if I understand this properly, you're trying to end up with output that looks something like this:
Low High Sun 50 70 Mon 55 73 Tue 60 80 Wed 62 84 Thu 58 70 Fri 53 66 Sat 48 50 Avg 55.14 70.43
To do that, …
Jump to PostSo if I understand this properly, you're trying to end up with output that looks something like this:
Low High Sun 50 70 Mon 55 73 Tue 60 80 Wed 62 84 Thu 58 70 Fri 53 66 Sat 48 50 Avg 55.14 70.43
To do that, I'd probably …
All 22 Replies
JeffGrigg
170
Posting Whiz in Training
Slyvr
0
Junior Poster in Training
hhagood
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
JeffGrigg
170
Posting Whiz in Training
hhagood
0
Newbie Poster
hhagood
0
Newbie Poster
Anyday
0
Newbie Poster
hhagood
0
Newbie Poster
JeffGrigg
170
Posting Whiz in Training
hhagood
0
Newbie Poster
JeffGrigg
170
Posting Whiz in Training
hhagood
0
Newbie Poster
JeffGrigg
170
Posting Whiz in Training
hhagood
0
Newbie Poster
JeffGrigg
170
Posting Whiz in Training
hhagood
0
Newbie Poster
luky279
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
hhagood
0
Newbie Poster
JeffGrigg
170
Posting Whiz in Training
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.