Computer Science: A Structured Programming Approach Using C, Third Edition
Computer Science: A Structured Programming Approach Using C, Third Edition
3rd Edition
ISBN: 9780534491321
Author: Behrouz A. Forouzan, Richard F. Gilberg
Publisher: Course Technology, Inc.
bartleby

Videos

Textbook Question
Book Icon
Chapter 4, Problem 43PS

Write a program that uses standard functions. The program may be written entirely in main and must follow the pseudocode shown in Algorithm 4-1. Give the output appropriate captions, and align the data.

ALGORITHM 4-1 Pseudocode for Project 43

1 Prompt the user to enter a number

2 Read number

3 Display number

4 Get a random number and scale to range 3...37

5 Display random number

6 Set product to number * random number

7 Display product

8 Display ceiling of random number

9 Display floor of product

10 Display number raised to power of random number

11 Display square root of random number

Blurred answer
Students have asked these similar questions
Write a program in python that prints a pyramid made of letters in the middle of the screen. Use functions with parameters for this assignment. The base width of the pyramid is determined by a character the user enters. If the user enters the letter o, the following pyramid will be printed. It can be assumed that the screen width is 80 characters.                                        a                                                                             aba                                                                          abcba                                                                       abcdcba                                                                    abcdedcba                                                                  abcdefedcba                                                               abcdefgfedcba                                                            abcdefghgfedcba…
Each function should accept two integer parameters indicating the minimum and maximum X value to be plotted. The functions should have no return values. Create class-level constants for things we might wish to change later, e.g., a char called PLOT_CHAR that holds an “x” (per samples below), another char called FILL_CHAR that holds an unobtrusive character like ASCII 183, generated with a cast, e.g., (char)183.   JAVA PLEASE THOSE ARE NOT PERIODS OR DOTS. USE (System.out.print((Char)183); for (.) Please DON'T USE Loops(while);, if, Arrays, lists, or other data structures, objects, libraries, or methods.   Sideways Ploty = 20sin(.5x)+20 where -11<=x<=11 ··································x ·······································x ·······································x ···································x ···························x ·················x········x·xx···x··········x····················x ·····························x ····································x…
Draw a bar chart of 5 values entered by the user (>=0), where the y-axis is along the rowsand the x-axis is along the columns of the screen (as shown in the figure below).Function Prototype: void barChart(int N1, int N2, int N3, int N4, int N5)Example01:***********************************************************marks: 02Input:N1=>8 , N2=>6 , N3=>2 , N4=>10 , N5=>910 *09 * *08 * * *07 * * *06 * * * *05 * * * *04 * * * *03 * * * *02 * * * * *01 * * * * *1 2 3 4 5 Note: Take input in main function. don't use arrays or any other library other than iostream.

Chapter 4 Solutions

Computer Science: A Structured Programming Approach Using C, Third Edition

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Computer Programming for Beginners | Functions, Parameters & Arguments | Ep24; Author: Programming With Avelx;https://www.youtube.com/watch?v=VXlh-qJpfw0;License: Standard YouTube License, CC-BY