For compound I, the correct IUPAC name is 5-Phenyl-3-nitrobutane, where the nitro group is at the 3-position, and the phenyl group is at the 5-position.
For compound II, the IUPAC name is 2-ethyl-2-methyl-1-propylcyclohexane, following the rules for substituent naming.