TRENDING NEWS

POPULAR NEWS

Two Tasks In Pascal Need Help

Does anybody know how to make a program in Pascal with this task?

Try to modify this program which uses only 2 integers, you must use arrays.

program GCDProgram (input, output);

var

x, y: integer;

function Gcd (m, n : integer) : integer;

var

r: integer; {remainder}

begin

while n <> 0 do

begin

r := m mod n;

m := n;

n := r

end;

Gcd := m {returned result}

end;

begin{GcdProgram}

writeln('PROGRAM GcdProgram');

while true do {infinite loop - exit by an interrupt}

begin

write('Enter two integers: ');

readln(x,y);

writeln('GCD(', x:4, ',', y:4, ') = ', (Gcd(x, y)):4)

end

end. GcdProgram

Is the Titan X (pascal) good for gaming?

Meh… kind of sucks really. Toss two of them in an X99 rig, run them both at 16x and you still can’t play Crysis at better than medium settings… running 4x 4K monitors or 8K ;)The Titan X is a great gaming card but most gamers would be fine with a GTX 1080 for about half the cost. The place the Titan X really shines is in machine learning applications and some other GPU compute tasks. By the time you push the hardware enough for GTX 1080s to tap out the Titan X Pascal is also getting tapped out because… well, some things are too hard even for twin Titans.The Titan series has never been a great series of cards for gamers. The best thing the Titan X (Pascal) does at $1,200 is to make a $600 GTX 1080 seem really affordable. When we get a GTX 1080 Ti… the Titan X will be sitting there making that card seem really affordable too.Not that I wouldn’t build a rig with dual Titan Xs… but it’d be something like this insanity before I’d do it for a gamer. For another 3D artist, I’d do it a lot faster but I wouldn’t suggest Titan Xs to any of my gamer clients.

Who can help me? I'm working on a program in Pascal and I have to merge certain things from two programs, and then put it in the first one. How can I do it?

Ok, there are really two ways you can do that.If you stil needs the two programs, the best way is to refactor the functions you want to call from the second program in routine so that you can call them from the first.If you don’t need the second program and the question is just how to physically move the code from the second into the first, you probably can use any text editor, like Notepad++ (freeware). I personally tend to use Beyond Compare (commercial) for those type of tasks, that although is a compare tool, allows quite easily to merge two files into one of those.

A and B can complete a task in 8 and 12 hrs individually. How much time will they take to complete it if they work together?

A and B can complete a task in 8 and 12 hrs, individually. How much time will they take to complete it, if they work together?LCM of 8 and 12 is 24.A can complete 1/8th of the task in one hour or 3/24th.B can complete 1/12th of the task in one hour or 2/24th.A and B together can do (3/24)+(2/24) or 5/24th of the task in one hour. Both working together will complete the task in 24/5 or 4.8 hours.

An allegorical connotation of hercules task to kidnap cerberus could be?

Cerberus was Hades' loyal guard dog.
He guarded the entrance to the Underworld, and eternally prowled the gates to stop the intruders from entering.
The dead were allowed to pass by him as shadows, but the only way the living could get past him was by devious means.

An allegorical connotation of Herakles' task in kidnapping Cerberus was more related to the certainty of death in the direct confrontation with Cerberus.
That was Hera's idea and Herakles was thus assigned such a task, as She knew that no mortals or mere gods were able to overpower Cerberus.

Hades knew all along that Herakles would kidnap Cerberus.
Hades allow Herakles to take Cerberus away, as to let him fulfilled his final twelfth labour.....but on conditions that Cerberus was not to be physically abused or hurt.

As per record; only three persons were able to get past Cerberus.
Orpheus lulled him to sleep with his music, Aeneas was able to drug him and Cerberus was really terrified of Herkales.

Did a dream ever help you to solve a problem?

Yes…..as far as I can remember it did help me when I was about 10 years old.Here is the story:In grade 5 a story writing competition was held in our school. The teacher chose me from our school as I was smart ( not bragging). She told me I had to write a story at home and bring it back within two days….I was like fine I am gonna ask my parents about it or take help from the net……but my bad the net wasn't working and my parents told me that it would be fixed after a week or so. I asked my parents if they could help me but they were sort of busy applying for our German visa. And I myself was running out of ideas!!!I thought that ok I will leave it for tomorrow…..I woke up not knowing what happened. I sat on the table with my paper and pen when I finally got some sense knocked into my mind…… I HAD A DREAM!! That dream was literally a whole story that I could scribble down on a paper.I dreamt that there were 3 siblings who were orphans. They didn't have enough money to go to school so they earned there money by crafting and made something with there own talent and started to sell them . At first they didn't gain enough money but gradually and slowly they started to gain handfuls of money …then more. There was something else that I can't remember but this dream decided the plot for my story and I wrote a whole long story on this plot.I got appreciated by my teacher and I secured 1st place. I am literally so happy and glad that I dreamt about it on the right time and on the right day!! I call it my LUCKY NIGHT

Should I get a 1080 Ti or Titan X for 3D Modeling?

A lot depends on the software you plan to use. On a PC, both cards deliver similar performance with the Titans coming out on top. But you can get almost two 1080 Ti’s for the price of a single Titan card.The Quadro cards were initially designed for this market but they cost about 4 times what the GTX cards cost that are intended for high-end gaming systems. Traditionally, GPUs have only been useful in viewport graphics where their power was needed to use Open GL or Open CL to display 3D data during modeling and setting up motion in animation, but then the high end rendering was handled by the CPU. So it didn’t really make much of a difference what video card you were using. However, in the past two years we’ve seen an explosion of GPU rendering engines enter the market. These engines exploit the multiple cores of graphics processor to render all of the different kinds of rendering passes in parallel. The result is incredible looking physics based rendering in a fraction of the time needed by CPU renderers. In fact a single computer with multiple Nvidia cards can often outperform a multiple CPU render farm.Prior to the advent of GPU rendering, the top renderers like Vray, Arnold, Corona, Maxwell, and Mental Ray dominated the market, but they required hefty render farms to produce sophisticated animation. But then Octane came out and blew the socks off using GPU processors. More recently products like Cycles, Furryball and Redshift have given Octane a run for its money. None of these technologies are as mature as Vray, but they are incredibly robust for production work.I just recently built a custom PC just for 3D work with an i7 6 core processor, 128 GB of RAM and an Nvidia GTX 1080 Ti graphics processor. My typical rendering is a still, but typically 5000 x 5000 pixels. I had been using Cinema 4D’s Physical rendering engine (CPU only). When I upgraded to Redshift my rendering times dropped from about 1 hour to about 5 minutes. If I add a second 1080 Ti (there’s room for four altogether) my rendering times would be cut in half. Which is exactly what I plan to do, as long as I can figure out how to keep my office cool. If you haven’t checked out Redshift yet, do it. It is amazingly fast.But to get back to your original question, if you could only have one video card, get a Titan. But if you could have two or more, I think you’re better off with 1080 Ti’s.

TRENDING NEWS