Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework 28 Read Chapter 2 pages 46-99 and all of the summaries posted 1. What is a program comment? 2. What are the symbols used

image text in transcribed
Homework 28 Read Chapter 2 pages 46-99 and all of the summaries posted 1. What is a program comment? 2. What are the symbols used to create a comment in a C program 3. Which of these are good constant names? (circle your answers) See pg 49 o TAX RATE o tax_rate 1 4. Which of these are valid variable names? (circle your answers) See pg 5 o test o itest o test 1 o test-1 5. Which of these are invalid variable names? (circle your answers) See pg 51 o tests1 o 10test o test 1_joe o test-1_joe Reread pages 73-76. Give the value stored in the variable y for each of the following expressions: o int y- 16/3; 6. ya int y 16%3; Reread pages 73-76. Give the value stored in the variable y for each of the following expressions: o double y 16.0/3; 7. double y # 1613; Write one line of code to calculate the average of 3 numbers, num1, num2, and num3 and store the answer in the variable average: 8. 9. Reread pages 88-89. Give the statement double height 65.32499; Write a printf statement to print the value for weight using a format that shows 3 numbers after the decimal point print the pades before printing the value 35): 88-89. Give the statement int age 35; Write a printf statement to value for age using a format that uses 6 characters (so it will print 4 spaces 10.Reread pages t the completed the Programming Projects that are due this week. Pro Be sure you have

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899