Unit 6 HW - Alexa Rocha Unit 6 Homework 6 If selection =1...

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

View Full Document Right Arrow Icon
Alexa Rocha Unit 6 Homework 6. If selection ==1 Then Display “You selected A.” If selection ==2 Then Display “You selected 2.” If selection == 3 Then Display “You selected 3.” If selection == 4 Then Display “You selected 4.” Else Display “Not good with numbers.” End If Select selection Case 1: Display “You selected A.” Case 2: Display “You selected 2.” Case 3: Display “You selected 3.” Case 4: Display “You selected 4.” Default: Display “Not good with numbers.” End Select 7. Declare Integer speed
Image of page 1

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

View Full Document Right Arrow Icon
Alexa Rocha Display “Enter the speed” Input speed If speed >= 24 AND <= 56 Then Display “Speed is normal” Else Display “Speed is abnormal” End If 8. If points >= 9 AND <= 51 Then Display “Valid points.” Else Display “Invalid points.” End If 9. Declare Integer month Display “Enter 1 for January, 2 for February, or 3 for March: “ Input month 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.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern