IT104 HW6.1

# IT104 HW6.1 - IT104 Homework 6 Alogorithm Workbench p.159...

• Homework Help
• 3

This preview shows pages 1–3. Sign up to view the full content.

IT104 Homework 6 Alogorithm Workbench p.159 6-10 6. Display “You selected A.” Else If selection == 2 Then Display “You selected 2.” Else If selection == 3 Then Display “You selected 3.” Else If selection == 4 Then Display “You selected 4.” Else Display “Not good with numbers, eh?” End If 7. Main Declare Integer Speed Display “ Enter speed: “ Input speed Else Display “Speed is abnormal.’ End 8. //This program is to determine whether the points are valid //Declare variables Declare real points //Get the number of points Display “Enter the number of points.” Input points //Determine if the number of points is valid If points < 9 and points > 51 Then Display “Invalid points” Else Display “Valid points” End If Kenneth Laun IT104 Homework 6

This preview has intentionally blurred sections. Sign up to view the full version.

9. Select month Case 1 Display ”January has 31 days.” Case 2 Display ”February has 28 days.” Case 3 Display ”March has 31 days.” Default Display ”Invalid Selection.” End Select 10. If variable minimum = True the
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Set hours = 10 End if Kenneth Laun IT104 Homework 6 Programming exercises 8 p.160 8. declare real total = 0 declare int pennies = 0 declare int nickels = 0 declare int dimes = 0 declare int quarters = 0 declare real pen_val =0 declare real nick_val =0 declare real dim_val =0 declare real quar_val =0 Display ‘How many Pennies? Set pennies Display ‘How many Nickels? Set nickels Display ‘How many Dimes? Set dimes Display ‘How many Quarters? Set quarters Set pen_val – pennies *.01 Set nick_val – nickels *.05 Set dim_val – dimes *.10 Set quar_val – quarters *.25 Set total = pen_val + nick_val + dim_val + quar_val If total < 1 Display” You entered” pennies “Pennies”, “ nickels “Nickels,” dimes “Dimes, and “quarters “ Quarter and your total is “ total “You are over \$1. Please try again!” Else Display “Congratulation! You successfully combined the coin into exactly \$1” End if...
View Full Document

• Fall '14
• \$1, 28 days, 31 days

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern