[solved] – Question 89802

Write a C++ Program to change the background colors on the screen.

Expert Answer


[solved] – Question 89803

Write a C++ Program to draw 2 rectangles and fill One of them.

Expert Answer


[solved] – Question 89804

Write a C++ Program whether the given number is Perfect number or not?
[Hint: Perfect number is a Positive number which sum of all positive divisors excluding that number For Example 6 is Perfect Number since divisor of 6 are 1, 2 and 3. Sum of its divisor is 1+2+3=6]

Expert Answer


[solved] – Question 89805

Write a C++ Program to Print Fibonacci Series.
[Hint: Fibonacci series has first two numbers equal to 1 and 0 and the further each number is consist of the addition of previous two numbers 1st number = 0,2nd number = 1,3rd number = 0+1= 1,4th number = 1+1= 2,5th number = 1+2= 3 And so on.]
Your output should look like as below:
0,1,1,2,3,5,8,13……..
(

Expert Answer


[solved] – Question 89810

In this program, you will create a personal organizer. Using parallel arrays you will store the following information on each event in your organizer:

Month (1 – 12)
Day (1 – 31)
Year
Event name
If the user enters an incorrect month the month should be set to January.
If the user enters an incorrect day then the day should be set to 1.

Write the following methods:

Add an event
Print all events
Print events in a specific month
Your program should follow how the sample run (below) asks for input and how it outputs events.

It should first keep asking for new events to add until the user says NO. Then, it should print all the events entered. Finally, it should ask the user for a specific month that he or she would like to see events from.

Expert Answer


[solved] – Question 89811

Write the pseudocode that will produce a slip similar to the one illustrated at the beginning of the question. Your solution should satisfy the following requirements:
• The solution must illustrate the use of good programming practices;
• The solution must make use of a loop;
• The loop must make use of a sentinel value;

Expert Answer


[solved] – Question 89865

In this program, you will create a personal organizer. Using parallel arrays you will store the following information on each event in your organizer:

Month (1 – 12)
Day (1 – 31)
Year
Event name
If the user enters an incorrect month the month should be set to January.
If the user enters an incorrect day then the day should be set to 1.

Write the following methods:

Add an event
Print all events
Print events in a specific month
Your program should follow how the sample run (below) asks for input and how it outputs events.

It should first keep asking for new events to add until the user says NO. Then, it should print all the events entered. Finally, it should ask the user for a specific month that he or she would like to see events from*

Expert Answer


[solved] – Question 89868

A positive integer m is a sum of squares if it can be written as k + x where k > 0, x > 0 and both k and x are perfect squares. Write a Python function sumofsquares(m) that takes an integer m returns True if m is a sum of squares and False otherwise. Here are some examples to show how your function should work.
>>> sumofsquares(41) should return True
>>> sumofsquares(30) should return False
>>> sumofsquares(17) should return True

Expert Answer


[solved] – Question 8990

simple java dice game
Each player starts-out with a cumulative score of zero. Then each player rolls three
dices and a random number appears for each dice. The summation of each number is
added in each player’s score. The winner is the player that has the highest score in x
turns based on what the players initially decided.

Expert Answer


[solved] – Question 89938

explain the function and protocols of each of the layers of the TCP/IP model.

Expert Answer