{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lab assignment 10

lab assignment 10 - values and height is a struct with the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 155MN (Lab-9) Create a script to accomplish the directions of each question. Hand in each script through the web-handin. http://cse.unl.edu/~handin/ Due: Monday, 7 th Oct at 11:59 pm Activity 1: a) Create a vector of structures “experiments” that stores information on subjects used in experiment. Each struct has four fields: num, name, weights, and height. The num field is an integer, name is a string, weights is a vector with two values (both of which are double
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: values), and height is a struct with the fields feet and inches (both of which are integers). The following is an example of what the format might look like. experiments weights height num name 1 2 feet inches 1 33 joe 200.34 202.45 5 6 2 11 sally 111.45 111.23 7 2 b) Write a function “printhts” that will receive a vector in this format and will print height of each subjects in inches. e.g. printhts(experiments) Joe is 66 inches tall Sally is 86 inches tall...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online