<< Prev Showing: 306-310 of 353 Next >>
· 281-285 · 286-290 · 291-295 · 296-300 · 301-305 · 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 ·Statements that define the function grade
At Enlightened State University, students receive grades of Honors, Pass, or Fail rather than the usual letter grade. The function grade returns H, P, F depending on whether avg merits a grade of Honors (at least 92), Pass (at least 65, but less than 92), or Fail (less than 65). Write C++ statements that define the function grade whose declaration is: chr grade (double avg);
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
170240
OTA ID:
105821
If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: P + (B * P)/100 - (D * P)/100 The population growth rate is given by the formula: B - D write a program that prompts te user to enter th starting population, birth nd death rates, and n, the number f years The program should then calculate and print the estimated population after n years. Your program must consist of the following functions: a. growthRate: This function takes as its parameters the birh and death rate, and it returns the population growth rate. b. estimatedPopuation: This function takes as... click for more
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
170242
OTA ID:
101298
Prove the following property for Minimum Spanning Trees
Please show me the detailed solutions - see the attached file, thank you.
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
171163
OTA ID:
101298
Write a program that prompts for the number of rooms in a house.
Write a program that prompts for the number of rooms in a house. Use the input, n, to declare an array of rectangles dynamically. In a loop, input the dimensions for the n rooms, and then output the total area of the house. Scan the array to identify the room with the largest perimeter, and output its dimensions. This program prompts the user for a number of rooms in a house. creates dynamically an array of rectangles to hold the dimensions of each room. calculates and output the total area of the house identifies the room with the largest perimeter and output it's dimensions. the main file to use is: #include "d_rect.h"
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
172228
OTA ID:
101298
Write an algorithm to identify all substrings that form numbers that are divisible by 3.
Given a string of numbers, identify all of the substrings that form numbers that are divisible by 3. For example, applying the algorithm on the string 37540 should produce the following substrings (not necessarily in this order): 0; 3; 75; 54; 375; 540
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
172344
OTA ID:
105821
<< Prev Showing: 306-310 of 353 Next >>
· 1-5 · 6-10 · 11-15 · 16-20 · 21-25 · 26-30 · 31-35 · 36-40 · 41-45 · 46-50 · 51-55 · 56-60 · 61-65 · 66-70 · 71-75 · 76-80 · 81-85 · 86-90 · 91-95 · 96-100 · 101-105 · 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 · 191-195 · 196-200 · 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 · 236-240 · 241-245 · 246-250 · 251-255 · 256-260 · 261-265 · 266-270 · 271-275 · 276-280 · 281-285 · 286-290 · 291-295 · 296-300 · 301-305 · 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 · 336-340 · 341-345 · 346-350 · 351-353 ·Page generated in 0.1116 seconds