Question: A Boolean variable is to store an indicator as to whether the weather forecast is for sunshine or not. Another Boolean variable is to store

A Boolean variable is to store an indicator as to whether the weather forecast is for sunshine or not. Another Boolean
variable is to store whether the day of the week is Friday or not...
One Pascal statement to display information on the screen is of the following form:
write ();
For example:
write(I am hungry);
displays the text in double quotations on the screen.
One Java statement to display information on the screen is of the following form:
System.out.print();
For example:
System.out.print (I am hungry); // Displays the text in double quotations on the screen.
3a. write a Pascal statement to declare the two Boolean variables, and another statement to display on screen the phrase hurray for beautiful days! if the weather forecast is for a sunny day, and it is Friday.
3b., write a Java statement to declare the two Boolean variables, and another to display on screen the phrase hurray for beautiful days! if the weather forecast is for a sunny day, and it is Friday.
3c. The equivalent C++ keyword that corresponds to the Pascal write and the Java System.out.print is cout. However, instead of the parentheses, the shift left (<<) operator is used. Based on this information, write the equivalent C++ statement for 3a. and 3b.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!