[solved] – Question 70556
Fill in the following code to crash the program if the file fails to open
#include <iostream>
#include <fstream>
#include<__________>
using namespace std;
int main(){
ifstream.inf;
inf.open(“input.txt”);
if(!inf){
cout << “Failed to open file” << endl;
___________(_________) // type either true or false in the parenthesis which ever one would make the program crash
}
return 0;
}
Expert Answer
[solved] – Question 7056
Write a program that will read daily temperature reading for the month of January 2012. Your program should contain the following functions:
(a) main() function contains instructions of reading input needed and print all the related information.
(b) NORMAL() function calculates the number of normal days (temperature between 60F and 84F)
(c) AVERAGE() function calculates the average temperature in January 2012.
(d) DAYS() function calculates
Expert Answer
[solved] – Question 7057
Each student in a class of 30 students takes 2 tests in which scores range between 0 and 100. Suppose the test scores are stored in a 30 X 2 array TEST. Write a program that should output the average score for both tests. Your program must consist of the following functions:
(a) getData()that reads and stores data in the two dimensional array.
(b) averageTest1() that calculates and returns the average score for Test1.
(c) averageTest2() that calculates and returns the average score for Test2.
(d) display() that output the average score Test1 and Test2.
(These functions must all have the appropriate parameters.)
Expert Answer
[solved] – Question 70573
Comparing Televisions: You are shopping for a new television and want to compare the prices of three televisions. Research new televisions. Create a worksheet that compares the type, size, and the price for each television, as well as the costs to add an extended warranty. Use the concepts and techniques presented in this module to calculate the average price of a television and average cost of an extended warranty and to format the worksheet.
Expert Answer
[solved] – Question 70593
If there is a space to park the vehicles then some n number of vehicles are parked there and then count how many are of cars, and how many of are scooters and note the arrival time and the departure time, display the order of parked vehicles, and the color of vehicle, if he wants to take the vehicle from the parking he has to tell the number of vehicle if the number is wrong he can’t able to take the vehicle from parking in that case he has to tell the car model and the color of vehicle and also the rc book of vehicle and also he has to calculate the parking fees based on time he kept.
Expert Answer
[solved] – Question 70675
consider a string of numbers, slashes, spaces, and miscellaneous character.
Say for example, “4!@/#@$6@#$ 7”
I want to extract numbers and slashes in the given format : a/b c
How do I extract only “4/6 7” from the above string in c++?
Expert Answer
[solved] – Question 707
How much must I pay roughly for a xcode project? I just need a reference cause I’m clueless of how to even start for this FYP project. Thanks.
Expert Answer
[solved] – Question 70718
You are given a set of ‘n’ chemical compounds which have to be packed in two boxes. Some of the chemicals may react with other chemical sand should not be packed in the same box.
Code an efficient algorithm in/C++ that determines if it is possible to safely pack these chemicals in two boxes and if so, then print which chemicals should go in Box-1 and which in Box-2.
n6
C0: C1,C2
C1: C0,C3,C5
C2: C0
C3: C4,C1
C4: C3
C5: C1
Expert Answer
[solved] – Question 70721
If there is a space to park the vehicles then some n number of vehicles are parked there and then count how many are of cars, and how many of are scooters and note the arrival time and the departure time, display the order of parked vehicles, and the color of vehicle, if he wants to take the vehicle from the parking he has to tell the number of vehicle if the number is wrong he can’t able to take the vehicle from parking in that case he has to tell the car model and the color of vehicle and also the rc book of vehicle and also he has to calculate the parking fees based on time he kept.
Expert Answer

