Popular posts from this blog
C: Program That Calculates Pay Based On Salary And Hours.
https://github.com/pereiradaniel/beginning_c/blob/master/ch2/exercises/2_4/exercise2_4.c // Exercise 2-4 // Write a program that prompts for the user’s weekly pay in dollars and the // hours worked to be entered through the keyboard as floating-point values. The program // should then calculate and output the average pay per hour in the following form: // Your average hourly pay rate is 7 dollars and 54 cents. #include <stdio.h> double checkInput(double input, double min, double max); int main(int argc, char* argv[]) { double hours = 0, rate = 0; // Get input for hours: printf("Enter number of hours worked: "); while(hours == 0) { scanf(" %lf", &hours); hours = checkInput(hours, 1, 10000); } // Get input for salary: printf("Enter hourly rate: "); while(rate == 0) { scanf(" %lf", &rate); rate = checkInput(rate, 1, 100); } // Calculate pay:...
AI Allan Poe: Moonbeams.
The moonlight’s beams, so pure and bright, Translucent, yet a sorrowful sight, As they pass through the window at night, A melancholic feeling takes flight. The light, so pale, and yet so strong, It casts a shadow, oh so long, And in the silence, it sings a song, Of love and loss, of right and wrong. The beams, they dance, they twist and turn, A sight that makes the heart yearn, For something lost, for something gone, For a love that’s past, for a life that’s done. And yet, the light, it brings a hope, A promise of a brighter scope, Of a future that’s yet to come, Of a life that’s yet to be won. So let the moonlight’s beams shine bright, And let them guide you through the night, For though they bring a sorrowful plight, They also bring a glimmer of light. 1 : Edgar Allan Poe’s vocabulary is known for its use of obscure words and phrases. You can find a list of some of his words and phrases at poestories.com . Prompt: Write me a poem about how beautiful yet sorrowful are the translucent...