Beruflich Dokumente
Kultur Dokumente
One-Dimensional Array
Machine Problem 7 Date
Name Log in Username
File Name: Surname_MP7.cpp
Laboratory Exercise Score Sheet
Criteria Score
1 Proper program indention. 5
2 Program contains the prescribed comments 5
3 Variables / constants are descriptive of what it holds 5
4 Program is running without errors 10
5 Proper Array Declaration and Used 20
6 Program generated the required output 20
7 Applied Logical Solution to the problem 20
8 Organize Screen Layout 10
9 Saved to prescribed folder and correct filename 5
Total 100
Engr. Cheryl Mari M. Isip
Instructor Date: ________________
Problem Statement:
Write a program that specifies three one-dimensional arrays named current, resistance, and
voltage. Each array should be capable of holding 10 elements. Using a loop, input values for the current
and resistance arrays. Your program should not accept negative current. Voltage can be computed by
multiplying the current and resistance. After all the data has been entered, display the following output:
Current Resistance Voltage
Under each column heading display the appropriate value.