0% found this document useful (0 votes)
3 views2 pages

ComputerProgramming2 Exercises Instructions

The document outlines two machine exercises for a computer programming course. Exercise #1 requires writing a program that accepts a name and message, displaying them in a specific format, while Exercise #2 involves creating a program that performs basic arithmetic operations on two numbers. Both exercises require saving the source code and output screenshots to a designated Google Drive folder with specific naming conventions.

Uploaded by

friasjames09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

ComputerProgramming2 Exercises Instructions

The document outlines two machine exercises for a computer programming course. Exercise #1 requires writing a program that accepts a name and message, displaying them in a specific format, while Exercise #2 involves creating a program that performs basic arithmetic operations on two numbers. Both exercises require saving the source code and output screenshots to a designated Google Drive folder with specific naming conventions.

Uploaded by

friasjames09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Computer Programming 2

Machine Exercise #1.

Problem and its Requirements : Write a program that accepts a name and a message. After the INPUT
PROCESS, display the name and the message.

Sample Run :

Please enter name : FREDDIE

Please enter your message : Hello!!! I hope that you are fine

You entered the name - FREDDIE

And you also typed the Message - Hello!!! I hope that you are fine

This is the Final OUTPUT :

Hello!!! I hope that you are fine, FREDDIE

(Screenshot your program CODE. Save it using the pattern : LastnameFirstnameExer1SourceCode.


Example is MasuliFreddieExer1SourceCode.

Save to : https://drive.google.com/drive/folders/1vNJSJX0vnGirfuMw4p7aMzmskgUZ8leT?usp=sharing

Screenshot also the Program OUTPUT. Save it using the pattern :


LastnameFirstnameExer1Output.Example is MasuliFreddieExer1Output.

Save to : https://drive.google.com/drive/folders/1vNJSJX0vnGirfuMw4p7aMzmskgUZ8leT?usp=sharing
Machine Exercise #2.

Problem and its Requirements : A program that allows the entry of any two numbers. After the INPUT,
perform the 5 Basic Arithmetic Operations (Multiplication, Division for whole part and Division for the
remainder, Addition and Subtraction) to the numbers. Display the two numbers and the RESULTS
obtained.

Sample Run:

Screenshot for the INPUT:

Screenshot for the OUTPUT:

Save the Files (Source Code and Output) following the pattern for Machine Exercise No. 1 and just
change the Exer1 to Exer2 and save also to the Subject’s Google Drive -
https://drive.google.com/drive/folders/1vNJSJX0vnGirfuMw4p7aMzmskgUZ8leT?usp=sharing

You might also like