Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A. Write a program in C that will sum all the numbers from 1 to 1000 while ignoring all numbers divisible by 10 and 5

image text in transcribed

A. Write a program in C that will sum all the numbers from 1 to 1000 while ignoring all numbers divisible by 10 and 5 [10 Marks] B. Using the array shown of sample values you are required to write a full program which includes a main0 and a function called Cumulative. This function will add each cell of an array to the value of the previous array cell so that the array then stores the cumulative values of all the array cells from 0 to N-1 Hint: See a sample starting array and final array shown: Starting Array Final Array: 4 4 10 Marks] Write a full C program that will calculate the area of a triangle using a dedicated function to the accuracy of two decimal places by asking the user directly for the key dimensions in floats. C. Hint: The formula for determining the area of a triangle is: Base* Height [10 Marks

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

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions

Question

3. What are the advantages of ordering goods online?

Answered: 1 week ago

Question

Types of physical Maps?

Answered: 1 week ago

Question

Explain Intermediate term financing in detail.

Answered: 1 week ago

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago