Question
Code 1: Write a (c) program that will generate two random numbers. The range of the random number is from 1 to 6. Display what
Code 1: Write a (c) program that will generate two random numbers. The range of the random number is from 1 to 6. Display what each random number is. Calculate the sum of the numbers and display the following. (Code only needs to run once)
If the sum of the numbers is 2, display Low 2.
If the sum of the numbers is 7 display Lucky 7.
If the sum of the numbers is 12, display High 12.
Display the sum of the numbers if not 2, 7, or 12.
C Program Code 2: Have a user type a string with upper and lowercase letters and change all of the uppercase to lowercase and vise versa. (Code only needs to run once)
C Program Code 3: Use getchar() to read a string (12 character max) containing spaces from a user, and correctly display the string back to the user with printf(). (Code only needs to run once)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started