Write a c code to declare an array of maxsize

Assignment Help C/C++ Programming
Reference no: EM132740370

ENG 200 Computer Programing for Engineering - American College of the Middle East

Question 1:

Write a program that asks user which digit to print and then print it in 6 rows & 6 columns using nested loop.

See the output attached below

Insert a copy of your code (not screenshot) and explain in details. Use comments for detailed explanation

Use Visual Studio or gdb online compiler(for any other compiler give its name and explain how you use it) and insert a clear screenshot of your output with code (5 pts) (Give any digit different than above example to show output of your code)

Question 2:

Write a C program that reads each integer entered by user and checks if it is divisible by 10 Program should ask for new integer after finishing each calculation.

Insert a copy of your code (not screenshot) and explain in details. Use comments for detailed explanation(20pts)

Use Visual Studio or gdb online compiler(for any other compiler give its name and explain how you use it) and insert a clear screenshot of your output with code (5 pts) (Give any number different than above example to show output of your code)

Question 3:

Write a C code to declare an array of maxsize 100. Array size should be asked to user and initialize array with the numbers entered by the user and then to find how many of the entered numbers are bigger than or equal to 20.

Insert a copy of your code (not screenshot) and explain in details. Use comments for detailed explanation

Use Visual Studio or gdb online compiler(for any other compiler give its name and explain how you use it) and insert a clear screenshot of your output with code (Give other elements different than above example to show output of your code)

Question 4:

Write a program that asks the user to input n integers in an array (n is between 1-100) and then check each element if it is positive or negative .If the element is negative should be multiplied by -1 and saved in array as positive.

• Insert a copy of your code (not screenshot) and explain in details. Use comments for detailed explanation

• Use Visual Studio or gdb online compiler(for any other compiler give its name and explain how you use it) and insert a clear screenshot of your output with code (Give any number different than above example to show output of your code)

Bonus:

1. What is the value of B given that: int B=8+4/2;

2. Which type of variables use %f as conversion character?

3. Is She_02 a valid variable name? Explain why

4. Which character is used to print a new line?

5. Which loop is a post-test loop?

Attachment:- Computer Programing for Engineering.rar

Reference no: EM132740370

Questions Cloud

Job analysis : Compare and contrast two methods for collecting job analysis data, and then outline the pros and cons of each method.
Experiment with the comet function : Experiment with the comet function: Try the example given when help comet is entered and then animate your own function using comet.
Job design-job redesign and workflow analysis : Analyze at least two reasons why job analysis is often described as "the foundation of human resources management."
What do you think caused the housing crisis : What do you think caused the housing crisis beginning in 2008? Do you think a mortgage should require a down payment? Explain why.
Write a c code to declare an array of maxsize : Write a C program that reads each integer entered by user and checks if it is divisible by 10 Program should ask for new integer after finishing
How would you handle this scenario : Do you feel that there is an ethical issue with this situation? If you were Els (the salesperson), how would you handle this scenario
What way might you accommodate the customer : In what way might you accommodate the customer and at the same time protect your bank?
Determine the friction factor for a reynolds : Determine the friction factor for a Reynolds number R = 400.000 and a relative roughness e/0 = 0.006 using Moody diagram and from Swamee-Jain Equation
Compute the inventory turnover rate : Havier's Treasures had cost of goods sold of $600,000, ending inventory of $250,000, and average inventory of $200,000. Compute the inventory turnover rate

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Program that prompts the user to enter a test score

Write a complete C++ program that prompts the user to enter a test score. The test score must be greater than or equal to 0 and less than or equal to 100.

  Develop a time delay procedure

Develop a time delay procedure for the 2.0 GHz Pentium 4 that waits for 80s.

  AACS1074 Programming Concepts and Design Assignment

AACS1074 Programming Concepts and Design Assignment Help and Solution - Apply the programming concepts and skills that you learnt to write

  Database management

MIS3100 - DATABASE MANAGEMENT INDIVIDUAL PROJECT DEFINITION 2015-2016 Bhuiya PERSONAL PICTURE DATABASE You love to take pictures. However, with digital technology, instead of taking one or two pictures, you take hundreds. You have been collecting and..

  Program that uses the attached data file as input

Please do this the easiest way possible, I am learning C++ by myself but I just don't understand input/output so this will help me understand it better.

  Write a program that prompts for and gets a student name

Write a program that gets 10 numbers and stores then in an array. Then sort (low to high) the number using a function.

  Create a class named order that performs order processing

Create a class named Order that performs order processing of a single item. Create a subclass named ShippedOrder that overrides computePrice() by adding a shipping and handling charge of $4.00

  Execute the bankers algorithm for deadlock avoidance

Implement the Banker's algorithm for deadlock avoidance, that works on a given set of N processes and M resource types (N

  A program to computes the area and volume

Write a program that reads in the radius and length of a cylinder and computes the area and volume using the following formulas.

  Relate the features with the real life scenarios

Explain any three features that must be implemented by the application that will be created by WebSoft Solutions Pvt. Ltd. Support your answer with suitable examples. Relate the features with the real life scenarios.

  Setup a class to store a book

Setup a class to store a book. The data is to include title, author, year of publication, dewey number and age.

  User that will be asked to input the time

Write a code for the following C++ problem. We will have a user that will be asked to input the time of a train traveling in terms of minutes and this minutes is a non-negative integer.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd