Assn3_1781
pdf
keyboard_arrow_up
School
Conestoga College *
*We aren’t endorsed by this school
Course
1781
Subject
English
Date
Feb 20, 2024
Type
Pages
1
Uploaded by ChefHornetPerson1044
CONESTOGA COLLEGE SCHOOL OF ENGINEERING AND INFORMATION TECHNOLOGY
Intro Prog1781 Prof: Mark McCaulay
Assignment #3 1)
Write a program that allows a user to enter in 10 student marks, and 10 student first names. Use a subroutine
to load the arrays, and another subroutine to display the names and student marks and a subroutine
for highest mark and a subroutine for lowest mark, and a function
for average mark. Give the user 6 options
: 1) load the arrays, 2)
display the arrays in sync, 3)
lowest mark calculations, 4)
highest mark calculations, 5)
average mark calculations 6)
to quit. Give an error message if the incorrect option is given, and repeat until the user wants to quit. Do not use exception handling in this program. Array data:
Joe 78.5, Mary 88.2, Ken 73.8, Dan 82.7, John 91.1, Joyce 75.4, Roy 64.3, Sue 93.7, Tom 68.6, Kim 86.6 test with given data. (25 marks)
2)
Use a two-dimensional
array to solve the following problem: A Robotics Engineering company has three salespeople (1 to 3) who sell four
different Robotics products (1 to 4). Once a day, each salesperson passes in a slip for each type of product sold. Each slip contains the following: a) The salesperson number (1 to 3)
b) The product number (1 to 4)
c) The total dollar value of that product sold that day Write a program that will prompt the user for a salesperson number and a product number, and then allow entry of the total dollar value for the day. Repeat this until the entire multi array is full, or until the user wants to quit. Display the multi- array contents and calculate the totals
for each row and and display to the right and the totals
for each column and display at the bottom. (25 marks)
Due: Next Week Thur Nov 1, 2018 at start of class.
Hand in cover page with name and student number on it followed by print out of code, and print screens of all executions. Ensure print out of code is large enough to read.
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help