CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
124
Create and Print a PointA Point struct (with int fields x and y) is defined for you.
easyNot startedSolve
125
Set a Struct FieldA Counter struct with an int field value is defined.
easyNot startedSolve
126
Sum of Two Struct FieldsA Pair struct with int fields a and b is defined.
easyNot startedSolve
127
Rectangle Area from StructA Rectangle struct with int fields width and height is defined.
easyNot startedSolve
128
Rectangle Perimeter from StructA Rectangle struct with int fields width and height is defined.
easyNot startedSolve
129
Student RecordA Student struct with a char array name and an int age is defined and initialized in main.
easyNot startedSolve
130
Box VolumeA Box struct with int fields length, width, and height is defined.
easyNot startedSolve
131
Modify a Struct FieldA Score struct with an int field points is defined and starts at 10.
easyNot startedSolve
132
Compare Two Struct FieldsA Pair struct with int fields a and b is defined and initialized in main.
easyNot startedSolve
133
Larger Struct FieldA Pair struct with int fields a and b is defined and initialized to {12, 4}.
easyNot startedSolve
134
Average of Three FieldsA Triple struct with int fields a, b, and c is defined and initialized to {10, 20, 30}.
easyNot startedSolve
135
Format a Time StructA Time struct with int fields hours and minutes is defined and initialized to {9, 5}.
easyNot startedSolve
136
Copy a StructA Point struct (int x, y) is defined.
easyNot startedSolve
137
Celsius Struct to FahrenheitA Temperature struct with an int field celsius is defined and initialized to {100}.
easyNot startedSolve
138
Bank Account DepositAn Account struct with an int field balance is defined and starts at 100.
easyNot startedSolve
236
Point Struct: Store and Print CoordinatesDefine a struct type named Point that has two integer fields, x and y.
easyNot startedSolve
237
Rectangle Struct: Compute the AreaDefine a struct type named Rectangle with two integer fields, width and height.
easyNot startedSolve
238
Student Struct: Name and GradeDefine a struct type named Student with a text field name (a char array) and an integer field grade.
easyNot startedSolve
239
Point Struct: Sum of CoordinatesDefine a struct type named Point with integer fields x and y.
easyNot startedSolve
240
Rectangle Struct: Compute the PerimeterDefine a struct type named Rectangle with integer fields width and height.
easyNot startedSolve
241
Book Struct: Title and Page CountDefine a struct type named Book with a text field title (a char array) and an integer field pages.
easyNot startedSolve
242
Circle Struct: Radius and DiameterDefine a struct type named Circle with a single integer field radius.
easyNot startedSolve
396
Initialize a Struct with Designated InitializersA struct Point has int fields x and y.
easyNot startedSolve
397
Define a Struct Type with typedefUse typedef to define a struct type named Rect that has two int fields, width and height.
easyNot startedSolve
398
Store a Name in a StructA struct Person holds a char name[20] and an int age.
easyNot startedSolve
399
Access a Field Through a PointerA struct Point with x = 7 and y = 2 exists, along with a pointer ptr to it.
easyNot startedSolve
400
Size of a StructA struct Triple contains three int fields: a, b, and c.
easyNot startedSolve
401
Reflect a Point Across the OriginA struct Point starts at x = 3, y = -5.
easyNot startedSolve
402
Toggle a Flag FieldA struct Switch has an int field on that is currently 1.
easyNot startedSolve
403
Age from Birth YearA struct Person stores a birthYear of 1990.
easyNot startedSolve
404
Struct Assignment Copies ValuesIn C, assigning one struct to another copies all of its fields.
easyNot startedSolve
405
Read a Field Through a const PointerA struct Point with x = 8 and y = 9 is pointed to by a const struct Point ptr, meaning you may read the struct but not modify it through the pointer.
easyNot startedSolve
406
Print an Array of StructsAn array of three struct Point values holds {1,2}, {3,4}, and {5,6}.
easyNot startedSolve
407
Zero-Initialize a StructA struct Point has three int fields: x, y, and z.
easyNot startedSolve
408
First Initial of a NameA struct Person stores char name[20] set to "Grace".
easyNot startedSolve
139
Read Into a StructA Point struct (int x, y) is defined.
mediumNot startedSolve
140
Function Returns a StructComplete the function makePoint so it builds and returns a Point from the two values it receives.
mediumNot startedSolve
141
Function Takes a StructComplete the function area so it returns the area of a Rectangle passed to it (width times height).
mediumNot startedSolve
142
Sum a Field Across an Array of StructsAn Item struct has an int field price.
mediumNot startedSolve
143
Highest Score in Array of StructsA Player struct has an int field score.
mediumNot startedSolve
144
Modify a Struct via PointerComplete the function birthday so it increases a Student's age by 1 THROUGH A POINTER (so the change is visible in main).
mediumNot startedSolve
145
Distance Between Two PointsA Point struct (int x, y) is defined.
mediumNot startedSolve
243
Rectangle Area with a FunctionDefine a struct type named Rectangle with integer fields width and height.
mediumNot startedSolve
244
Array of Students: List and AverageDefine a struct type named Student with a text field name and an integer field grade.
mediumNot startedSolve
245
Move a Point with a PointerDefine a struct type named Point with integer fields x and y.
mediumNot startedSolve
409
Count Passing StudentsAn array of five struct Student values holds the scores 55, 60, 72, 40, and 90.
mediumNot startedSolve
410
Swap Two StructsTwo points are given: a = {1, 2} and b = {3, 4}.
mediumNot startedSolve
411
Lowest Value in an Array of StructsAn array of four struct Item values holds the value fields 34, 12, 27, and 8.
mediumNot startedSolve
412
Check if Two Structs Are EqualRead four integers from standard input describing two points: a.x a.y b.x b.y.
mediumNot startedSolve
413
Midpoint of Two PointsTwo points are given: a = {2, 4} and b = {6, 8}.
mediumNot startedSolve
414
Add Two VectorsWrite a function add that takes two struct Vec values and returns a new struct Vec whose fields are the component-wise sums.
mediumNot startedSolve
415
Dot Product of Two VectorsTwo vectors are given: a = {1, 2} and b = {3, 4}.
mediumNot startedSolve
416
Total Cost of an OrderAn array of three struct Item values each has a price and a qty.
mediumNot startedSolve
417
Add Two Complex NumbersA struct Complex has integer fields re (real part) and im (imaginary part).
mediumNot startedSolve
146
Nested StructsAn Address struct (with a char array city and an int zip) is nested inside a Person struct (with a char array name and an Address field).
hardNot startedSolve
147
Sort Structs by a FieldA Player struct has an int field score.
hardNot startedSolve
148
Scale a Vector StructA Vector struct (int x, y) is defined.
hardNot startedSolve
418
Simplify a FractionA struct Fraction holds num = 6 and den = 8.
hardNot startedSolve
419
Two-Node Linked ListA struct Node holds an int value and a struct Node next pointer (a self-referential struct).
hardNot startedSolve
420
Read Students and Print the Top ScorerFirst read an integer n from standard input, then read n lines, each with a student's name (a single word) and their integer score.
hardNot startedSolve