Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Programming Assignment 9 Pointers For each of the programs assigned below, submit the following: Copy of the source code (c, not cpp, file) uploaded

image text in transcribed
C Programming Assignment 9 Pointers For each of the programs assigned below, submit the following: Copy of the source code (c, not cpp, file) uploaded to Assignment 8 louated in Canvas under Assignments. . Observe the usual guidelines regarding the initial comment section, indenting, and so on. In addition, when functions are required, place function definitions following main. Before each function use comments to explain what the function does. Do not use global variables. Use the random number generator to randomly generate an integer between 1 and 100 into an array that will hold 20 elements. Sort this array from largest to smallest. Print both the original array and the sorted array to the screen Count the number of odd numbers that are in the array and output that to the screen. 1. 2. For this problem, you will besin .scating a program that will allow a person to play Yahtzee. You will only do one small part of the program, however. Your job will be to: Use the random number generator, seeded with time, to assign 5 random numbers(1-6) into an array Print the five dice numbers to the screen . .Ask the user to select which dice they'd like to keep . Then roll the non-selected dice again Print the five dice numbers to the screen Again, ask the user to select which dice they'd like to keep Then take the final roll of the non-selected dice Print the final dice rolls to the screen. . 32515 Would you like to keep dice 1? N Would you like to keep dice 2? N Output should look like this: You should use an integer array for the dice and a Would you like to keep dice 4? N character array for whether you keep the dice or Would you like to keep dice 5? Y not. Everything can be done in main. 52515 Would you like to keep dice 1? Y Would you like to keep dice 2? N Would you like to keep dice 3? Y Would you like to keep dice 4? N Would you like to keep dice 5? Y

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

Classify delivery styles by type.

Answered: 1 week ago