Write Computer Program Capable Reducing Number Gray Levels Image 256 2 Integer Powers 2 De Q43881594

(a) Write a computer program capable of reducing the number of gray levels in an image from 256 to 2, in integer powers of 2.The language is Matlab. Please use theattached image.

(a) Write a computer program capable of reducing the number of gray levels in an image from 256 to 2, in integer powers of 2. The desired number of gray levels needs to be a variable input to your code. We were unable to transcribe this imageShow transcribed image text (a) Write a computer program capable of reducing the number of gray levels in an image from 256 to 2, in integer powers of 2. The desired number of gray levels needs to be a variable input to your code.

Expert Answer


Answer to (a) Write a computer program capable of reducing the number of gray levels in an image from 256 to 2, in integer powers …

Write Console Program Character Based Simple Calculation Addition Subtraction Multiplicati Q43794472

Write a console program (character based) to do simplecalculation (addition, subtraction, multiplication and division) oftwo numbers using your understanding of control flow, inputvalidations and error conditions in C.

Description:
You
need
to
write
a
program
that
when
run
will
display
a
menu.
The
menu
gives
five
choices
of
operation:
addition,
subtraction,
multiplication,
division
and
a
last
choice
to
exit
the
program.
It
then
gives
a
prompt
and
waits
for
the
user
to
make
a
choice
of
calculation
they
want
to
do.
Once
user
selects
the
operation
it
will
check
for
valid
menu
choices
(and
give
an
appropriate
message
if
a
wrong
choice
was
selected)
and
then
prompts
to
enter
two
numbers
separated
by
a
space.
If
the
user
entered
valid
numbers
it
will
do
the
operation
desired
and
then
displays
the
result.
If
user
input
is
not
valid
displays
an
error
message
and
asks
for
the
correct
input.
At
the
end
of
the
result,
it
gives
a
prompt
“Press
enter
key
to
continue
….”.
Once
enter
key
is
pressed,
it
displays
the
menu
again.
Program
repeats
until
user
selects
a
choice
to
exit.

Expert Answer


Answer to Write a console program (character based) to do simple calculation (addition, subtraction, multiplication and division) …

Write Cor C Program Using Std Thread Class Fork System Call Function Need Create 2 Process Q43876316

Write a Cor C++ program using the std:thread class and the fork() system call function You will need to create 2 processes -Write a Cor C++ program using the std:thread class and the fork() system call function You will need to create 2 processes – each process will create a thread and each thread adds a random value to a global variable Firstly, create an integer global variable initialized to 0. Within the main function, create 2 sub-processes using the fork() function and a for loop. The Sub-processes will: • Print out its current process D. • Create three threads using the std::thread class that all call the same thread function. • Exit the process. Create a Thread function that will do as follows: • Output the current thread D to the screen. • Create a random number between 1 and 100 and output that number to the screen. This can be done by using the rand() function to generate your randomly generated number. Add the previously generated random number to the global variable and output the global variable value to the screen. The Parent Process (otherwise known as the main thread) will: o Wait for the first sub-process to finish before starting the second sub-process. To run this CPP program on Unix or Linux, type g++ -pthread progi.cpp -std-c+11. The-pthread flag is necessary to import the std: thread class library as well as the c++11 flag. Sample Output: An example of the expected output is below: NOTE: The global value will not save with the end of a process, because of the way the fork() function works. Process 1 ID: 59860 Thread ID: 0 — Random Number: 87 — Global Number: 87 Thread ID: 1 — Random Number: 78 — Global Number: 165 Thread ID: 2 — Random Number: 16 — Global Number: 181 Process 2 ID: 59865 Thread ID: 0 — Random Number: 78 — Global Number: 78 Thread ID: 1 — Random Number: 16 — Global Number: 94 Thread ID: 2 — Random Number: 94 — Global Number: 188 Show transcribed image text Write a Cor C++ program using the std:thread class and the fork() system call function You will need to create 2 processes – each process will create a thread and each thread adds a random value to a global variable Firstly, create an integer global variable initialized to 0. Within the main function, create 2 sub-processes using the fork() function and a for loop. The Sub-processes will: • Print out its current process D. • Create three threads using the std::thread class that all call the same thread function. • Exit the process. Create a Thread function that will do as follows: • Output the current thread D to the screen. • Create a random number between 1 and 100 and output that number to the screen. This can be done by using the rand() function to generate your randomly generated number. Add the previously generated random number to the global variable and output the global variable value to the screen. The Parent Process (otherwise known as the main thread) will: o Wait for the first sub-process to finish before starting the second sub-process. To run this CPP program on Unix or Linux, type g++ -pthread progi.cpp -std-c+11. The-pthread flag is necessary to import the std: thread class library as well as the c++11 flag. Sample Output: An example of the expected output is below: NOTE: The global value will not save with the end of a process, because of the way the fork() function works. Process 1 ID: 59860 Thread ID: 0 — Random Number: 87 — Global Number: 87 Thread ID: 1 — Random Number: 78 — Global Number: 165 Thread ID: 2 — Random Number: 16 — Global Number: 181 Process 2 ID: 59865 Thread ID: 0 — Random Number: 78 — Global Number: 78 Thread ID: 1 — Random Number: 16 — Global Number: 94 Thread ID: 2 — Random Number: 94 — Global Number: 188

Expert Answer


Answer to Write a Cor C++ program using the std:thread class and the fork() system call function You will need to create 2 process…

Write Cost Baked Goods Calculator Ask User Input Three Pieces Information Number Hours Bak Q43908438

Write a “cost of baked goods” calculator. Ask a user to inputthree pieces of information: the number of hours baking (a floatvalue), the cost for having a baker (cost/hour) (a float value),and the cost of the ingredients (a float value). Output the totalcost of the baked goods. The output should be a singlefloating-point number showing the total cost of baked goods roundedup to one decimal place (use round(var,1) ).

main.py

(show code)

Expert Answer


Answer to Write a “cost of baked goods” calculator. Ask a user to input three pieces of information: the number of hours bakin…

Write Decimal Equivalent Following Ieee Floating Point Bit Pattern Show Work 1 00010000 00 Q43864994

  1. a) Write the decimal equivalent of the following IEEEfloating-point bit pattern. Show yourwork.

1 00010000 00110000000000000000000

b) Write IEEE floating pointrepresentation of the following decimal number. Show yourwork.

10.75

Expert Answer


Answer to a) Write the decimal equivalent of the following IEEE floating-point bit pattern. Show your work. 1 00010000 0011000000…

Write Definition Contrapositive Contradiction Giving Example Understood Layperson Q43822553

Write your own definition of contrapositive and contradiction,giving an example of each that can be understood by alayperson.

Expert Answer


Answer to Write your own definition of contrapositive and contradiction, giving an example of each that can be understood by a lay…

Write Error Free Java Programto Following Things Prompts User Input Two Data Values Data V Q43786725

Write an error-free Java programto do the following things. • Prompts the user to input two data values. The data values shou

Write an error-free Java programto do the following things. • Prompts the user to input two data values. The data values should be the width of the base and height of a square pyramid. In the figure below, the height is denoted by hand we assume the base is a square. From the main program, call a method that calculates the volume of the pyramid. The method should be called vol. It should have two input parameters (the aforementioned width and height) and return a float (double) value that is the volume. Note that the volume will be a positive number (or zero). From the main program, call a second method that cal culates the surface area of the pyramid. The main module should print a message saying something like this CO Input base width: 8.6 DO Input height: 12 The volume of a pyramid with width = 8.6 and height 12.0 is 295.84 cm^3. The surface area = 293.21109258564707 cm^2. In summary, the programmer needs to write two methods and call two methods. Show transcribed image text Write an error-free Java programto do the following things. • Prompts the user to input two data values. The data values should be the width of the base and height of a square pyramid. In the figure below, the height is denoted by hand we assume the base is a square. From the main program, call a method that calculates the volume of the pyramid. The method should be called vol. It should have two input parameters (the aforementioned width and height) and return a float (double) value that is the volume. Note that the volume will be a positive number (or zero). From the main program, call a second method that cal culates the surface area of the pyramid. The main module should print a message saying something like this CO Input base width: 8.6 DO Input height: 12 The volume of a pyramid with width = 8.6 and height 12.0 is 295.84 cm^3. The surface area = 293.21109258564707 cm^2. In summary, the programmer needs to write two methods and call two methods.

Expert Answer


Answer to Write an error-free Java programto do the following things. • Prompts the user to input two data values. The data valu…

Write Essay Compare Rational Database Hierarchical Database Compare Data Repository Data W Q43890543

write an essay compare the rational database to the hierarchicaldatabasecompare data Repository to Data warehouse.

Expert Answer


Answer to write an essay compare the rational database to the hierarchical databasecompare data Repository to Data warehouse….

Write Essay Explain Monilr App Appealing Explain Interest Mobile App Development Think Fa Q43903213

Write an essay explain which monilr app is more appealing to youand why. Explain what interest you the most about mobile appdevelopment. Think about your favorite app on your phone. What makeit your favorite? Also, explain what makes an app good orbad.

Expert Answer


Answer to Write an essay explain which monilr app is more appealing to you and why. Explain what interest you the most about mobil…

Write Essay Least 500 Words Discussing Safe Harbor Provisions Hipaa Copy Without Providing Q43796982

Write an essay of at least 500 wordsdiscussing the Safe Harbor provisions underHIPAA.  

Do not copy without providing proper attribution. Thispaper willbe evaluated through SafeAssign. 

Write in essay format not in outline, bulleted,numbered or other list format.  

plsss close thee questiom

Expert Answer


Answer to Write an essay of at least 500 words discussing the Safe Harbor provisions under HIPAA. Do not copy without providing pr…