Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have the following question from a class, but I don\'t think I am correct. Ple

ID: 641287 • Letter: I

Question

I have the following question from a class, but I don't think I am correct. Please Help :). Forgive me, I am a true beginner lol.

"Write a program that prompts the user to enter the weight of a person in kilograms and outputs the equivalent weight in pounds. Output both the weights rounded to two decimal places. (Note that 1 kilogram = 2.2 pounds.) Format your output with two decimal places."

Code I have:

//This program is designed to have a user input weight in kilograms then output the results in pounds//
*******************************************************************************************************
#include <iostream>
#include <iomanip>

using namespace std;
const double Pounds =2.2;

int main()
{
double weightInKilograms;
double weightInPounds;

cout << "Enter Weight in kilograms : ";
cin >> weightInKilograms;

weightInPounds = weightInKilograms * Pounds;

cout << fixed << setprecision(2);

cout << "Weight in Pounds is : " << weightInPounds << endl;

return 0;

}

Output I am receiving:

'week-3.exe': Loaded 'C:UsersuserDesktopweek-3Debugweek-3.exe', Symbols loaded.
'week-3.exe': Loaded 'C:WindowsSysWOW64 tdll.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64mscoree.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64kernel32.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64KernelBase.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64msvcp100d.dll', Symbols loaded.
'week-3.exe': Loaded 'C:WindowsSysWOW64msvcr100d.dll', Symbols loaded.
'week-3.exe': Loaded 'C:WindowsSysWOW64dvapi32.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64msvcrt.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64sechost.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64 pcrt4.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64sspicli.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64cryptbase.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsMicrosoft.NETFramework 4.0.30319mscoreei.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64shlwapi.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64gdi32.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64user32.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64lpk.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64usp10.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64imm32.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64msctf.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsMicrosoft.NETFramework 4.0.30319clr.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64msvcr110_clr0400.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsssemblyNativeImages_v4.0.30319_32mscorlib%c9588954c3662d542b53f4462268bmscorlib.ni.dll', Cannot find or open the PDB file
'week-3.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetssemblyGAC_32mscorlib 4.0_4.0.0.0__b77a5c561934e089mscorlib.dll'
'week-3.exe': Loaded 'C:WindowsSysWOW64ole32.dll', Cannot find or open the PDB file
'week-3.exe' (Managed (v4.0.30319)): Loaded 'C:UsersuserDesktopweek-3Debugweek-3.exe', Symbols loaded.
'week-3.exe': Loaded 'C:WindowsMicrosoft.NETFramework 4.0.30319clrjit.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsSysWOW64oleaut32.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsMicrosoft.NETFramework 4.0.30319diasymreader.dll', Cannot find or open the PDB file
'week-3.exe': Loaded 'C:WindowsssemblyNativeImages_v4.0.30319_32System9f6324a598a7c4446a4a1168be7c4b1System.ni.dll', Cannot find or open the PDB file
'week-3.exe' (Managed (v4.0.30319)): Loaded 'C:WindowsMicrosoft.NetssemblyGAC_MSILSystem 4.0_4.0.0.0__b77a5c561934e089System.dll'
The thread 'Win32 Thread' (0x1b58) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x150) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1bf0) has exited with code 0 (0x0).
The program '[508] week-3.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
The program '[508] week-3.exe: Native' has exited with code 0 (0x0).

Explanation / Answer

What matters the most is fine, the symbols for your own code could be loaded: 'week-3.exe': Loaded 'C:UsersuserDesktopweek-3Debugweek-3.exe', Symbols loaded.

The rest of the missing symbols are for the .NET system's assemblies (dlls). They are not needed all the time, you can debug your code without them, but if you do advanced things like
messaging, majority of your stack won't be able to unrolled.

Have as much system pdbs (debug symbol files) as possible. It's very easy to setup.
http://msdn.microsoft.com/en-us/library/b8ttk8zy%28v=vs.90%29.aspx