subject

For this assignment you will write a series of three small programs to practice programming in c. your programs must compile and run under xubuntu (or another variant of ubuntu) 18.04. if you follow the video sequence on installing netbeans for c/c++ for xubuntu, you will have this development environment available. for two of these programs, you must start from the attached base les. for the other program, you will be expected to write it from scratch. 1 2.1 computation (hw02a_base. c) [8 points] for this program, you will write a program to compute the total volume for a number of cylinders. a cylinder may have dierent values for height and radius. study the base code and make the following changes: • add a prompt for the number of cylinders to sum. make sure to use the control symbol for integers. [2 points] • create a loop based on the number of cylinders the user enters. [1 points] • within the loop, prompt for height and radius parameters (allow oating point numbers), and calculate the volume for that particular cylinder. [4 points] • display the total volume sum back to the user. make sure to use the right control symbol. [1 points]

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:10
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
All of the following are characteristics that must be contained in any knowledge representation scheme except
Answers: 3
question
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 22.06.2019 19:40
Solve the following javafx application: write a javafx application that analyzes a word. the user would type the word in a text field, and the application provides three buttons for the following: - one button, when clicked, displays the length of the word.- another button, when clicked, displays the number of vowels in the word.- another button, when clicked, displays the number of uppercase letters in the word(use the gridpane or hbox and vbox to organize the gui controls).
Answers: 1
You know the right answer?
For this assignment you will write a series of three small programs to practice programming in c. yo...
Questions
question
Mathematics, 27.03.2020 03:27
question
Mathematics, 27.03.2020 03:27
question
Mathematics, 27.03.2020 03:27
Questions on the website: 13722360