Write a program about color processing

Assignment Help Computer Engineering
Reference no: EM132209632

Write a program about color processing: first declare an enumeration type for colors red, green, blue and other colors in global.

Next write a function which initializes an array of color type.

There are two parameters for the function: an array of color type and an integer for array size.

The function will initialize all of elements of the array to red color. Next write a second function that will update the color value of an array. There are two parameters for the function: an array of color type and an integer for array size.

The function will update all of elements of the array as following: if the array index is divisible by 2, set the element to red color, if the array index is divisible by 3, set the element to green color, if the array index is divisible by 5, set the element to blue color, for all other index values, set the element to other color.

Next write another function that will output all of the array elements whose color values are red.

There are two parameters for the function: an array of color type and an integer for array size. Next write the main function.

In your main function, first declare a color array of size 100. Then call all of the above three functions with the array.

a. Declare a structure Gradelnfo to store student grade which contains 3 double data members: homework, tests, and exam.

b. Write a void function readGrade() with one parameter- oneGrade of type Gradelnfo.

The function will read data into the three members of oneGrade. Consider oneGrade should be passed by value or by reference.

Reference no: EM132209632

Questions Cloud

How you determine which systems could be integrated : Respond to these discussion post based on the topic "Every organization wants their systems to function properly and "talk" to each other.
Write a java program capitals that initializes a string : Write a program "Converter" which has some measurements in meters and then print their measurements in miles, feet, and inches.
Write a program compare that reads two strings from command : Write a program compare.c that reads two strings from command line and outputs whether one is the reverse of the other while ignoring the case.
Compute and output the smaller of two numbers entered : Write a program that computes and outputs the smaller of two numbers entered by the user.
Write a program about color processing : Write a program about color processing: first declare an enumeration type for colors red, green, blue and other colors in global.
Ask the user to enter the total taxable income of the year : Write a program that computes the income tax for an individual. The program should ask the user to enter the total taxable income of the year.
How you would be able to apply the model : Research the wonderful scholarly resources available to you in the Chamberlain Library. Select a Transcultural Nursing Model/Theory.
Write a program to copy the vector a in two new vectors : Write a program to copy the vector A in two new vectors, copying from A the values even to the vector E, and the values odd into the vector O.
Compute the tax and lip on a restaurant bill : Your project will be evaluated bated on the following criteria. Project works according to specifications. Output in accurate Logic is efficient.

Reviews

Write a Review

Computer Engineering Questions & Answers

  For this assignment you will use your proposed solution as

for this assignment you will use your proposed solution as revised following grading and input from your professor

  Develop a 4-6 slide presentation that outlines your

1. your company wants to trade in foreign currency to build its portfolio. it is a european company and currently holds

  Give the assembly language code of microcontroller

For each of the logic statements, give the assembly language code of your microcontroller to set the condition code register and to branch to the ELSE.

  Create three circles that will function as a traffic light

In visual studio 2013 use CreateGraphics.FillEclipse() to create three circles that will function as a traffic light.

  Prepare a use case diagram

Prepare a Use Case Diagram based on the given problem description.

  How does the number of bits used in addressing

How does the number of bits used in addressing (i.e. the size of a pointer) affect addressable RAM size and thus maximum program size?

  Implement the server in any programming language

write code to implement the server in any programming language, which supports raw sockets. You may use the server code in the tutorial exercises

  How many pages are needed to store the entire job

If a program has 850 bytes that will be loaded into frames of 128 bytes each, and the instruction to be used is at byte 226.

  What is the purpose of an entity-relationship diagram

What is the purpose of an entity-relationship diagram? What are the major components of an ERD? How many object types are shown in Figure 4.5?

  State advantage and disadvantage of static and dynamic s-box

State some advantages and some disadvantages of static and dynamic S-boxes. Are the S-boxes (substitution tables) in AES static or dynamic?

  Consider any of the supercomputing examples we discussed in

consider any of the supercomputing examples we discussed in class and find a scientific paper describing it. you must

  Design and implement a custom environment for your maze game

ITECH7201 - Design and implement a custom environment for your maze game and Write two Unit test cases for each of the methods

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd