| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Scratch Exercises - InputProcessingOutput

Page history last edited by Steve Sweeney 8 years, 6 months ago

A. Output:

  1. Write a program to output (display) the first 5 lines from a song, poem, play, etc.  Animate the sprite saying the lines (e.g., dancing for a song, walking across a stage for a play, sitting in a chair and gesturing for a poem). 

 

B. Input:

  1. Write a program that asks the user for their first name, last name, and age.  Use a well-named variable to save the information from each question.  Output a greeting to the user making use of each piece of information.
  2. Write a program that asks the user for a course they took last year (e.g., "What was one course you took last year?"). The answer to the question should be saved in a well-named variable.  Once you have asked about the course name, ask the user their grade in that course, but use the course name they provided (e.g., if they answered "math", you would ask, "What was your grade in math?").  This will require some careful use of the JOIN command.  Once you have both the course name and grade, output both of them in a nicely formatted way for the user.
  3. Extend the previous program to ask for 2 courses, followed by 2 grades, and then output results.

 

C. Processing (Calculations):

  1. Write a program that asks the user for three numbers and then outputs the sum (total) of the three numbers.
  2. Write a program that asks the user to input marks for 4 courses, and the displays the average mark.
  3. Write a program that will ask the user for the length and width of a rectangle.  The program will then calculate the perimeter and area and output the results clearly.
  4. Write a program that will ask the user for the radius of a circle.  The program will then calculate the circumference and area of the circle and output the results clearly. 

Comments (0)

You don't have permission to comment on this page.