Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I NEED HELP KNOWING WHAT THE PROGRAM DOES WHICH IS THE DESCRIPTION PART #include using namespace std; int main() { /* Declare variables vari -

image text in transcribedimage text in transcribed

I NEED HELP KNOWING WHAT THE PROGRAM DOES WHICH IS THE DESCRIPTION PART

#include using namespace std; int main() { /* Declare variables vari - var4 as directed, but do not initialize these variables here */ // Initialize variables vari - var3 as directed // Compute result and store in var4 already done var4 = var3 + var2 & vari; /* Print out the value of var4 variable, as well as add a newline after */ return 0; } Complete the missing code and save the file as Lab3A.cpp, making sure it compiles and check your result that is output to the screen, making sure the operation result is correct. Note that you will submit this file to Canvas. CSCE 1030 Lab 3 . General Guidelines: (for ALL of your programming assignments and labs) Use meaningful variable names. Use appropriate indentation. Use comments, especially for the header, variables, and blocks of code. Please make sure that your submitted code has comments as points may be deducted for a lack of comments. Example Header: /* Author: Jane Doe (Jane. Doe@my.unt.edu) Date: Instructor: Description: A small description in your own words that describe what the program does. Any additional flags needed to allow the program to compile should also be placed here. */ . A. Declaring, Initializing, and Printing Variables The following program contains missing code. Specifically, you are to fill in the missing code as directed below: Declare variable varl as an integer, var2 as a character, and var3 and var4 as floating point numbers, but do not initialize these variables yet. Next, assign 25 as the value of varl. Then, assign var2 to be the uppercase first letter of your last name. Now, assign var3 to be the floating-point number 2.5. Finally, seeing as the var4 contains the result of an arithmetic expression, print out the result of var4 to the terminal. Be sure to print a newline after the result. . 1

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

2. Answer the question, Who should do the appraising?

Answered: 1 week ago

Question

=+such as the dirigenti in Italy?

Answered: 1 week ago

Question

=+ Are there closed-shop requirements or practices?

Answered: 1 week ago